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) <!-- {_class="reveal stretch"} -->
  45. </script>
  46. </section>
  47. <section data-markdown data-separator="^\n\n\n"
  48. data-separator-vertical="^\n\n"
  49. data-separator-notes="^Note:"
  50. data-charset="utf-8">
  51. <script type="text/template">
  52. # Test attributes in Markdown with default separator
  53. ## Slide 1 Def <!-- .element: class="fragment highlight-red" data-fragment-index="1" -->
  54. ## Slide 2 Def
  55. <!-- .element: class="fragment highlight-red" -->
  56. </script>
  57. </section>
  58. <section data-markdown>
  59. <script type="text/template">
  60. ## Hello world
  61. A paragraph
  62. <!-- .element: class="fragment highlight-blue" -->
  63. </script>
  64. </section>
  65. <section data-markdown>
  66. <script type="text/template">
  67. ## Hello world
  68. Multiple
  69. Line
  70. <!-- .element: class="fragment highlight-blue" -->
  71. </script>
  72. </section>
  73. <section data-markdown>
  74. <script type="text/template">
  75. ## Hello world
  76. Test<!-- .element: class="fragment highlight-blue" -->
  77. More Test
  78. </script>
  79. </section>
  80. </div>
  81. </div>
  82. <script src="../lib/js/head.min.js"></script>
  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>