README.md mentions the new default separators.
- new default separator for slide attributes - new default separator for element attributes Illustrate both, in html comments.edit
parent
78dfbf5202
commit
fdb03b4f10
10
README.md
10
README.md
|
@ -60,25 +60,25 @@ You can write your content as a separate file and have reveal.js load it at runt
|
||||||
|
|
||||||
#### Element Attributes
|
#### Element Attributes
|
||||||
|
|
||||||
Special syntax is available for adding attributes to Markdown elements. This is useful for fragments, amongst other things.
|
Special syntax (in html comment) is available for adding attributes to Markdown elements. This is useful for fragments, amongst other things.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<section data-markdown>
|
<section data-markdown>
|
||||||
<script type="text/template">
|
<script type="text/template">
|
||||||
- Item 1 {.class="fragment" data-fragment-index="2"}
|
- Item 1 <!-- .element: class="fragment" data-fragment-index="2" -->
|
||||||
- Item 2 {.class="fragment" data-fragment-index="1"}
|
- Item 2 <!-- .element: class="fragment" data-fragment-index="1" -->
|
||||||
</script>
|
</script>
|
||||||
</section>
|
</section>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Slide Attributes
|
#### Slide Attributes
|
||||||
|
|
||||||
Special syntax is available for adding attributes to the slide `<section>` elements generated by your Markdown.
|
Special syntax (in html comment) is available for adding attributes to the slide `<section>` elements generated by your Markdown.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<section data-markdown>
|
<section data-markdown>
|
||||||
<script type="text/template">
|
<script type="text/template">
|
||||||
<!-- slide-attributes: data-background="#ff0000" -->
|
<!-- slide: data-background="#ff0000" -->
|
||||||
Mardown content
|
Mardown content
|
||||||
</script>
|
</script>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue