test-markdown-element-attributes.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - Test Markdown Element Attributes</title>
  6. <link rel="stylesheet" href="../css/reveal.css">
  7. <link rel="stylesheet" href="qunit-2.5.0.css">
  8. </head>
  9. <body style="overflow: auto;">
  10. <div id="qunit"></div>
  11. <div id="qunit-fixture"></div>
  12. <div class="reveal" style="display: none;">
  13. <div class="slides">
  14. <!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section> -->
  15. <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
  16. <section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$" data-element-attributes="{_\s*?([^}]+?)}">>
  17. <script type="text/template">
  18. ## Slide 1.1
  19. <!-- {_class="fragment fade-out" data-fragment-index="1"} -->
  20. --
  21. ## Slide 1.2
  22. <!-- {_class="fragment shrink"} -->
  23. Paragraph 1
  24. <!-- {_class="fragment grow"} -->
  25. Paragraph 2
  26. <!-- {_class="fragment grow"} -->
  27. - list item 1 <!-- {_class="fragment grow"} -->
  28. - list item 2 <!-- {_class="fragment grow"} -->
  29. - list item 3 <!-- {_class="fragment grow"} -->
  30. ---
  31. ## Slide 2
  32. Paragraph 1.2
  33. multi-line <!-- {_class="fragment highlight-red"} -->
  34. Paragraph 2.2 <!-- {_class="fragment highlight-red"} -->
  35. Paragraph 2.3 <!-- {_class="fragment highlight-red"} -->
  36. Paragraph 2.4 <!-- {_class="fragment highlight-red"} -->
  37. - list item 1 <!-- {_class="fragment highlight-green"} -->
  38. - list item 2<!-- {_class="fragment highlight-green"} -->
  39. - list item 3<!-- {_class="fragment highlight-green"} -->
  40. - list item 4
  41. <!-- {_class="fragment highlight-green"} -->
  42. - list item 5<!-- {_class="fragment highlight-green"} -->
  43. Test
  44. ![Example Picture](examples/assets/image2.png)
  45. <!-- {_class="reveal stretch"} -->
  46. </script>
  47. </section>
  48. <section data-markdown data-separator="^\n\n\n"
  49. data-separator-vertical="^\n\n"
  50. data-separator-notes="^Note:"
  51. data-charset="utf-8">
  52. <script type="text/template">
  53. # Test attributes in Markdown with default separator
  54. ## Slide 1 Def <!-- .element: class="fragment highlight-red" data-fragment-index="1" -->
  55. ## Slide 2 Def
  56. <!-- .element: class="fragment highlight-red" -->
  57. </script>
  58. </section>
  59. <section data-markdown>
  60. <script type="text/template">
  61. ## Hello world
  62. A paragraph
  63. <!-- .element: class="fragment highlight-blue" -->
  64. </script>
  65. </section>
  66. <section data-markdown>
  67. <script type="text/template">
  68. ## Hello world
  69. Multiple
  70. Line
  71. <!-- .element: class="fragment highlight-blue" -->
  72. </script>
  73. </section>
  74. <section data-markdown>
  75. <script type="text/template">
  76. ## Hello world
  77. Test<!-- .element: class="fragment highlight-blue" -->
  78. More Test
  79. </script>
  80. </section>
  81. </div>
  82. </div>
  83. <script src="../js/reveal.js"></script>
  84. <script src="../plugin/markdown/marked.js"></script>
  85. <script src="../plugin/markdown/markdown.js"></script>
  86. <script src="qunit-2.5.0.js"></script>
  87. <script src="test-markdown-element-attributes.js"></script>
  88. </body>
  89. </html>