Using the bracket syntax shown below, you can highlight individual lines and even walk through multiple separate highlights step-by-step. Powerful syntax highlighting features are built into reveal.js. Special syntax (through HTML comments) is available for adding attributes to the slide elements generated by your Markdown. Four different types of backgrounds are supported: color, image. You can apply full page backgrounds outside of the slide area by adding a data-background attribute to your slide header element. This is useful for fragments, among other things. Slides are contained within a limited portion of the screen by default to allow them to fit any display and scale uniformly. Special syntax (through HTML comments) is available for adding attributes to Markdown elements. The following example customizes all available options: Element Attributes When used locally, this feature requires that reveal.js runs from a local web server. The data-charset attribute is optional and specifies which charset to use when loading the external file. ![]() The data-separator-notes attribute is a regular expression for specifying the beginning of the current slide's speaker notes (defaults to notes?:, so it will match both "note:" and "notes:"). Note the separator arguments which determine how slides are delimited in the external file: the data-separator attribute defines a regular expression for horizontal slides (defaults to ^\r?\n-\r?\n$, a newline-bounded horizontal rule) and data-separator-vertical defines vertical slides (disabled by default). You can write your content as a separate file and have reveal.js load it at runtime. If you want to manually add it to a new presentation here's how: The Markdown plugin is included in our default presentation examples. This functionality is powered by the built-in Markdown plugin which in turn uses marked for all parsing. Note that this is sensitive to indentation (avoid mixing tabs and spaces) and line breaks (avoid consecutive breaks). ![]() To create a Markdown slide, add the data-markdown attribute to your element and wrap the contents in a like the example below. ![]() It's possible and often times more convenient to write presentation content using Markdown.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |