summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab2013-12-02 12:12:27 +0100
committerHakim El Hattab2013-12-02 12:12:27 +0100
commit65bd155c34f3f989b783e96fed22af178b1717b5 (patch)
tree53864751d6ef76fa708d343200eddd6705a32b6a /README.md
parent31438c88ba03aef77d6f3c681ac0e31bb94f3bef (diff)
parentfdb03b4f1081508705c53ca31f679fb8793a8a95 (diff)
Merge branch 'attributes' of https://github.com/VonC/reveal.js into dev
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 3ef9c04..2b8356e 100644
--- a/README.md
+++ b/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
-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
<section data-markdown>
<script type="text/template">
- - Item 1 {.class="fragment" data-fragment-index="2"}
- - Item 2 {.class="fragment" data-fragment-index="1"}
+ - Item 1 <!-- .element: class="fragment" data-fragment-index="2" -->
+ - Item 2 <!-- .element: class="fragment" data-fragment-index="1" -->
</script>
</section>
```
#### 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
<section data-markdown>
<script type="text/template">
- <!-- slide-attributes: data-background="#ff0000" -->
+ <!-- slide: data-background="#ff0000" -->
Mardown content
</script>
</section>