Merge pull request #3005 from dabrahams/patch-1

Update comments about markdown slide separators
This commit is contained in:
Hakim El Hattab 2021-09-10 08:51:30 +02:00 committed by GitHub
commit dd79e7fabb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,8 @@
<!-- Use external markdown resource, separate slides by three newlines; vertical slides by two newlines --> <!-- Use external markdown resource, separate slides by three newlines; vertical slides by two newlines -->
<section data-markdown="markdown.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> <section data-markdown="markdown.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section>
<!-- Slides are separated by three dashes (quick 'n dirty regular expression) --> <!-- Slides are separated by three dashes (the default) -->
<section data-markdown data-separator="---"> <section data-markdown>
<script type="text/template"> <script type="text/template">
## Demo 1 ## Demo 1
Slide 1 Slide 1
@ -35,7 +35,7 @@
</script> </script>
</section> </section>
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes --> <!-- Slides are separated by regexp matching newline + three dashes + newline, vertical slides identical but two dashes -->
<section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$"> <section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$">
<script type="text/template"> <script type="text/template">
## Demo 2 ## Demo 2
@ -53,8 +53,8 @@
</script> </script>
</section> </section>
<!-- No "extra" slides, since there are no separators defined (so they'll become horizontal rulers) --> <!-- No "extra" slides, since the separator can't be matched ("---" will become horizontal rulers) -->
<section data-markdown> <section data-markdown data-separator="$x">
<script type="text/template"> <script type="text/template">
A A