More/better examples in markdown demo
authorLars Kappert <lars@webpro.nl>
Tue, 29 Jan 2013 22:59:57 +0000 (23:59 +0100)
committerLars Kappert <lars@webpro.nl>
Tue, 29 Jan 2013 22:59:57 +0000 (23:59 +0100)
index-markdown.html

index f46575be34b04c515fd4e73272849ced0110a356..367c879803164fc77d9f66773f6f3de06d3a04f0 100644 (file)
                 <!-- Use external markdown resource, and separate slides by three newlines; vertical slides by two newlines -->
                 <section data-markdown="demo.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section>
 
-                <!-- Slides are separated by newline + three dashes + newline (regular expression) -->
+                <!-- Slides are separated by three dashes (quick 'n dirty regular expression) -->
+                <section data-markdown data-separator="---">
+                    <script type="text/template">
+                        Slide 1
+                        ---
+                        Slide 2
+                        ---
+                        Slide 3
+                    </script>
+                </section>
+
+                <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
                 <section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$">
                     <script type="text/template">
-                        1.1
+                        Slide 1.1
 
                         --
 
-                        4.1
+                        Slide 1.2
 
                         ---
 
-                        5.1
+                        Slide 2
                     </script>
                 </section>
 
-                <!-- No "extra" slides, since there are no separators defined -->
+                <!-- No "extra" slides, since there are no separators defined (so they'll become horizontal rulers) -->
                 <section data-markdown>
                     <script type="text/template">
-                        1.1
+                        A
 
                         ---
 
-                        4.1
+                        B
 
                         ---
 
-                        5.1
+                        C
                     </script>
                 </section>