aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-10-28 09:16:41 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-10-28 09:16:41 -0400
commit080ae79b540c5cb9c16e1613322fec1f9c730b34 (patch)
tree4919e3b15934b2c924e4a1d4755cfc9d203c5185
parentd844195be137d6e67fd7eace5ad4d5f1310e7401 (diff)
downloadfreenode-live-2017-presentation-080ae79b540c5cb9c16e1613322fec1f9c730b34.tar
freenode-live-2017-presentation-080ae79b540c5cb9c16e1613322fec1f9c730b34.tar.gz
documentation for #677
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index f14be65..2c765df 100644
--- a/README.md
+++ b/README.md
@@ -58,6 +58,20 @@ You can write your content as a separate file and have reveal.js load it at runt
<section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n" data-notes="^Note:" data-charset="iso-8859-15"></section>
```
+#### Element Attributes
+
+Special syntax 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"}
+ </script>
+</section>
+```
+
+
### Configuration
At the end of your page you need to initialize reveal by running the following code. Note that all config values are optional and will default as specified below.