dyndoc-ruby 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (466) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dyn-init.rb +9 -0
  3. data/share/demo/first.dyn +38 -0
  4. data/share/demo/second.dyn +87 -0
  5. data/share/demo/simple.dyn +10 -0
  6. data/share/demo/simple_lib.dyn +2 -0
  7. data/share/demo/simple_lib2.dyn +2 -0
  8. data/share/demo/testBeamer.dyn +77 -0
  9. data/share/demo/testBeamer_lib.dyn +7 -0
  10. data/share/demo/test_atom.dyn +79 -0
  11. data/share/etc/alias +3 -0
  12. data/share/etc/dyndoc_library_path +1 -0
  13. data/share/etc/helpers +1 -0
  14. data/share/etc/pandoc/README.INSTALL +1 -0
  15. data/share/etc/pandoc/config.rb +4 -0
  16. data/share/etc/pandoc/extra/reveal.js-3.0.0/CONTRIBUTING.md +19 -0
  17. data/share/etc/pandoc/extra/reveal.js-3.0.0/Gruntfile.js +174 -0
  18. data/share/etc/pandoc/extra/reveal.js-3.0.0/LICENSE +19 -0
  19. data/share/etc/pandoc/extra/reveal.js-3.0.0/README.md +950 -0
  20. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/paper.css +202 -0
  21. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/pdf.css +157 -0
  22. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.css +1141 -0
  23. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.min.css +1141 -0
  24. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.scss +1316 -0
  25. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/README.md +25 -0
  26. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/beige.css +265 -0
  27. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/black.css +261 -0
  28. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/blood.css +291 -0
  29. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/default.css +268 -0
  30. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/league.css +267 -0
  31. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/moon.css +265 -0
  32. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/night.css +259 -0
  33. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/serif.css +261 -0
  34. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/simple.css +261 -0
  35. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/sky.css +268 -0
  36. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/solarized.css +265 -0
  37. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/beige.scss +39 -0
  38. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/black.scss +49 -0
  39. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/blood.scss +91 -0
  40. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/league.scss +34 -0
  41. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/moon.scss +57 -0
  42. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/night.scss +35 -0
  43. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/serif.scss +35 -0
  44. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/simple.scss +38 -0
  45. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/sky.scss +46 -0
  46. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/solarized.scss +63 -0
  47. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/white.scss +49 -0
  48. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/mixins.scss +29 -0
  49. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/settings.scss +43 -0
  50. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/theme.scss +339 -0
  51. data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/white.css +261 -0
  52. data/share/etc/pandoc/extra/reveal.js-3.0.0/index.html +408 -0
  53. data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.js +4276 -0
  54. data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.min.js +4276 -0
  55. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/css/zenburn.css +117 -0
  56. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/LICENSE +2 -0
  57. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.css +10 -0
  58. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.eot +0 -0
  59. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.ttf +0 -0
  60. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.woff +0 -0
  61. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/LICENSE +45 -0
  62. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  63. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  64. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  65. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  66. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  67. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  68. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  69. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  70. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  71. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  72. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  73. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  74. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro.css +39 -0
  75. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/classList.js +2 -0
  76. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/head.min.js +8 -0
  77. data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/html5shiv.js +7 -0
  78. data/share/etc/pandoc/extra/reveal.js-3.0.0/package.json +48 -0
  79. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/highlight/highlight.js +30 -0
  80. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/leap/leap.js +159 -0
  81. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.html +129 -0
  82. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.md +31 -0
  83. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/markdown.js +393 -0
  84. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/marked.js +37 -0
  85. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/math/math.js +64 -0
  86. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/client.js +13 -0
  87. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/index.js +56 -0
  88. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/master.js +51 -0
  89. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/client.js +60 -0
  90. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/index.js +66 -0
  91. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/notes.html +396 -0
  92. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.html +406 -0
  93. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.js +122 -0
  94. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/print-pdf/print-pdf.js +48 -0
  95. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/remotes/remotes.js +39 -0
  96. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/search/search.js +196 -0
  97. data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/zoom-js/zoom.js +278 -0
  98. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/assets/image1.png +0 -0
  99. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/assets/image2.png +0 -0
  100. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/barebones.html +41 -0
  101. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/embedded-media.html +49 -0
  102. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/math.html +185 -0
  103. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/slide-backgrounds.html +144 -0
  104. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.css +244 -0
  105. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.js +2212 -0
  106. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.html +134 -0
  107. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.js +46 -0
  108. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.html +128 -0
  109. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.js +47 -0
  110. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.html +52 -0
  111. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.js +15 -0
  112. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.html +83 -0
  113. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.js +15 -0
  114. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.html +82 -0
  115. data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.js +572 -0
  116. data/share/etc/pandoc/extra/reveal.js-3.1.0/CONTRIBUTING.md +23 -0
  117. data/share/etc/pandoc/extra/reveal.js-3.1.0/Gruntfile.js +170 -0
  118. data/share/etc/pandoc/extra/reveal.js-3.1.0/LICENSE +19 -0
  119. data/share/etc/pandoc/extra/reveal.js-3.1.0/README.md +1050 -0
  120. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/paper.css +202 -0
  121. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/pdf.css +157 -0
  122. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.css +1175 -0
  123. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.scss +1319 -0
  124. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/README.md +23 -0
  125. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/beige.css +271 -0
  126. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/black.css +267 -0
  127. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/blood.css +285 -0
  128. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/league.css +273 -0
  129. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/moon.css +271 -0
  130. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/night.css +265 -0
  131. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/serif.css +267 -0
  132. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/simple.css +267 -0
  133. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/sky.css +274 -0
  134. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/solarized.css +271 -0
  135. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/beige.scss +39 -0
  136. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/black.scss +49 -0
  137. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/blood.scss +79 -0
  138. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/league.scss +34 -0
  139. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/moon.scss +57 -0
  140. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/night.scss +35 -0
  141. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/serif.scss +35 -0
  142. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/simple.scss +38 -0
  143. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/sky.scss +46 -0
  144. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/solarized.scss +63 -0
  145. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/white.scss +49 -0
  146. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/mixins.scss +29 -0
  147. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/settings.scss +43 -0
  148. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/theme.scss +349 -0
  149. data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/white.css +267 -0
  150. data/share/etc/pandoc/extra/reveal.js-3.1.0/index.html +411 -0
  151. data/share/etc/pandoc/extra/reveal.js-3.1.0/js/reveal.js +4508 -0
  152. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/css/zenburn.css +117 -0
  153. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/LICENSE +2 -0
  154. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.css +10 -0
  155. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.eot +0 -0
  156. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.ttf +0 -0
  157. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.woff +0 -0
  158. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/LICENSE +45 -0
  159. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
  160. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
  161. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
  162. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
  163. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
  164. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
  165. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
  166. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
  167. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
  168. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
  169. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
  170. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
  171. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro.css +39 -0
  172. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/classList.js +2 -0
  173. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/head.min.js +8 -0
  174. data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/html5shiv.js +7 -0
  175. data/share/etc/pandoc/extra/reveal.js-3.1.0/package.json +49 -0
  176. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/highlight/highlight.js +30 -0
  177. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/leap/leap.js +159 -0
  178. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.html +129 -0
  179. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.md +31 -0
  180. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/markdown.js +393 -0
  181. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/marked.js +6 -0
  182. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/math/math.js +64 -0
  183. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/client.js +13 -0
  184. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/index.js +56 -0
  185. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/master.js +51 -0
  186. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/client.js +60 -0
  187. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/index.js +66 -0
  188. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/notes.html +396 -0
  189. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.html +406 -0
  190. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.js +122 -0
  191. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/print-pdf/print-pdf.js +48 -0
  192. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/remotes/remotes.js +39 -0
  193. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/search/search.js +196 -0
  194. data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/zoom-js/zoom.js +278 -0
  195. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/assets/image1.png +0 -0
  196. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/assets/image2.png +0 -0
  197. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/barebones.html +41 -0
  198. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/embedded-media.html +49 -0
  199. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/math.html +185 -0
  200. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-backgrounds.html +144 -0
  201. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-transitions.html +101 -0
  202. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.css +244 -0
  203. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.js +2212 -0
  204. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.html +134 -0
  205. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.js +46 -0
  206. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.html +128 -0
  207. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.js +47 -0
  208. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.html +52 -0
  209. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.js +15 -0
  210. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.html +83 -0
  211. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.js +15 -0
  212. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.html +85 -0
  213. data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.js +589 -0
  214. data/share/etc/pandoc/extra/s5-ui/default/blank.gif +0 -0
  215. data/share/etc/pandoc/extra/s5-ui/default/bodybg.gif +0 -0
  216. data/share/etc/pandoc/extra/s5-ui/default/framing.css +23 -0
  217. data/share/etc/pandoc/extra/s5-ui/default/iepngfix.htc +42 -0
  218. data/share/etc/pandoc/extra/s5-ui/default/opera.css +7 -0
  219. data/share/etc/pandoc/extra/s5-ui/default/outline.css +15 -0
  220. data/share/etc/pandoc/extra/s5-ui/default/pretty.css +86 -0
  221. data/share/etc/pandoc/extra/s5-ui/default/print.css +1 -0
  222. data/share/etc/pandoc/extra/s5-ui/default/s5-core.css +9 -0
  223. data/share/etc/pandoc/extra/s5-ui/default/slides.css +3 -0
  224. data/share/etc/pandoc/extra/s5-ui/default/slides.js +553 -0
  225. data/share/etc/uv/render/README +1 -0
  226. data/share/etc/uv/render/latex/-h.yaml +1 -0
  227. data/share/etc/uv/render/latex/active4d.render +136 -0
  228. data/share/etc/uv/render/latex/all_hallows_eve.render +100 -0
  229. data/share/etc/uv/render/latex/amy.render +175 -0
  230. data/share/etc/uv/render/latex/blackboard.render +115 -0
  231. data/share/etc/uv/render/latex/brilliance_black.render +556 -0
  232. data/share/etc/uv/render/latex/brilliance_dull.render +565 -0
  233. data/share/etc/uv/render/latex/cobalt.render +166 -0
  234. data/share/etc/uv/render/latex/dawn.render +130 -0
  235. data/share/etc/uv/render/latex/eiffel.render +136 -0
  236. data/share/etc/uv/render/latex/espresso_libre.render +127 -0
  237. data/share/etc/uv/render/latex/idle.render +97 -0
  238. data/share/etc/uv/render/latex/iplastic.render +103 -0
  239. data/share/etc/uv/render/latex/lazy.render +100 -0
  240. data/share/etc/uv/render/latex/mac_classic.render +139 -0
  241. data/share/etc/uv/render/latex/magicwb_amiga.render +121 -0
  242. data/share/etc/uv/render/latex/pastels_on_dark.render +208 -0
  243. data/share/etc/uv/render/latex/slush_poppies.render +127 -0
  244. data/share/etc/uv/render/latex/solarized.render +495 -0
  245. data/share/etc/uv/render/latex/spacecadet.render +85 -0
  246. data/share/etc/uv/render/latex/sunburst.render +190 -0
  247. data/share/etc/uv/render/latex/twilight.render +157 -0
  248. data/share/etc/uv/render/latex/zenburnesque.render +130 -0
  249. data/share/etc/uv/render/old/txt2tags.render +131 -0
  250. data/share/etc/uv/render/theme2latexrender +123 -0
  251. data/share/etc/uv/render/theme2xhtmlrender +157 -0
  252. data/share/etc/uv/render/tmTheme/solarized.tmTheme +1875 -0
  253. data/share/etc/uv/render/xhtml/active4d.render +140 -0
  254. data/share/etc/uv/render/xhtml/all_hallows_eve.render +104 -0
  255. data/share/etc/uv/render/xhtml/amy.render +179 -0
  256. data/share/etc/uv/render/xhtml/blackboard.render +119 -0
  257. data/share/etc/uv/render/xhtml/brilliance_black.render +560 -0
  258. data/share/etc/uv/render/xhtml/brilliance_dull.render +569 -0
  259. data/share/etc/uv/render/xhtml/cobalt.render +170 -0
  260. data/share/etc/uv/render/xhtml/dawn.render +134 -0
  261. data/share/etc/uv/render/xhtml/eiffel.render +140 -0
  262. data/share/etc/uv/render/xhtml/espresso_libre.render +131 -0
  263. data/share/etc/uv/render/xhtml/files/css/active4d.css +114 -0
  264. data/share/etc/uv/render/xhtml/files/css/all_hallows_eve.css +72 -0
  265. data/share/etc/uv/render/xhtml/files/css/amy.css +147 -0
  266. data/share/etc/uv/render/xhtml/files/css/blackboard.css +88 -0
  267. data/share/etc/uv/render/xhtml/files/css/brilliance_black.css +605 -0
  268. data/share/etc/uv/render/xhtml/files/css/brilliance_dull.css +599 -0
  269. data/share/etc/uv/render/xhtml/files/css/cobalt.css +149 -0
  270. data/share/etc/uv/render/xhtml/files/css/dawn.css +121 -0
  271. data/share/etc/uv/render/xhtml/files/css/eiffel.css +121 -0
  272. data/share/etc/uv/render/xhtml/files/css/espresso_libre.css +109 -0
  273. data/share/etc/uv/render/xhtml/files/css/idle.css +62 -0
  274. data/share/etc/uv/render/xhtml/files/css/iplastic.css +80 -0
  275. data/share/etc/uv/render/xhtml/files/css/lazy.css +73 -0
  276. data/share/etc/uv/render/xhtml/files/css/mac_classic.css +123 -0
  277. data/share/etc/uv/render/xhtml/files/css/magicwb_amiga.css +104 -0
  278. data/share/etc/uv/render/xhtml/files/css/pastels_on_dark.css +188 -0
  279. data/share/etc/uv/render/xhtml/files/css/slush_poppies.css +85 -0
  280. data/share/etc/uv/render/xhtml/files/css/solarized.css +478 -0
  281. data/share/etc/uv/render/xhtml/files/css/spacecadet.css +51 -0
  282. data/share/etc/uv/render/xhtml/files/css/sunburst.css +180 -0
  283. data/share/etc/uv/render/xhtml/files/css/twilight.css +137 -0
  284. data/share/etc/uv/render/xhtml/files/css/zenburnesque.css +91 -0
  285. data/share/etc/uv/render/xhtml/idle.render +101 -0
  286. data/share/etc/uv/render/xhtml/iplastic.render +107 -0
  287. data/share/etc/uv/render/xhtml/lazy.render +104 -0
  288. data/share/etc/uv/render/xhtml/mac_classic.render +143 -0
  289. data/share/etc/uv/render/xhtml/magicwb_amiga.render +125 -0
  290. data/share/etc/uv/render/xhtml/pastels_on_dark.render +212 -0
  291. data/share/etc/uv/render/xhtml/slush_poppies.render +131 -0
  292. data/share/etc/uv/render/xhtml/solarized.render +503 -0
  293. data/share/etc/uv/render/xhtml/spacecadet.render +89 -0
  294. data/share/etc/uv/render/xhtml/sunburst.render +194 -0
  295. data/share/etc/uv/render/xhtml/twilight.render +161 -0
  296. data/share/etc/uv/render/xhtml/zenburnesque.render +134 -0
  297. data/share/etc/uv/syntax/broken/markdown.syntax +519 -0
  298. data/share/etc/uv/syntax/broken/php.syntax +1253 -0
  299. data/share/etc/uv/syntax/buggy/nemerle.syntax +74 -0
  300. data/share/etc/uv/syntax/dyndoc.syntax +237 -0
  301. data/share/etc/uv/syntax/old/YAML.yaml +160 -0
  302. data/share/etc/uv/syntax/old/txt2tags.yaml +139 -0
  303. data/share/etc/uv/syntax/r.syntax +81 -0
  304. data/share/etc/uv/syntax/ruby.syntax +1035 -0
  305. data/share/etc/uv/syntax/source.actionscript.syntax +97 -0
  306. data/share/etc/uv/syntax/source.active4d.library.syntax +21 -0
  307. data/share/etc/uv/syntax/source.active4d.syntax +276 -0
  308. data/share/etc/uv/syntax/source.ada.syntax +33 -0
  309. data/share/etc/uv/syntax/source.antlr.syntax +151 -0
  310. data/share/etc/uv/syntax/source.apache-config.mod_perl.syntax +50 -0
  311. data/share/etc/uv/syntax/source.apache-config.syntax +191 -0
  312. data/share/etc/uv/syntax/source.applescript.syntax +384 -0
  313. data/share/etc/uv/syntax/source.asp.syntax +70 -0
  314. data/share/etc/uv/syntax/source.asp.vb.net.syntax +129 -0
  315. data/share/etc/uv/syntax/source.c++.qt.syntax +26 -0
  316. data/share/etc/uv/syntax/source.c++.syntax +186 -0
  317. data/share/etc/uv/syntax/source.c-sharp.syntax +59 -0
  318. data/share/etc/uv/syntax/source.c.ragel.syntax +201 -0
  319. data/share/etc/uv/syntax/source.c.syntax +414 -0
  320. data/share/etc/uv/syntax/source.camlp4.ocaml.syntax +36 -0
  321. data/share/etc/uv/syntax/source.cm.syntax +32 -0
  322. data/share/etc/uv/syntax/source.coffee.syntax +216 -0
  323. data/share/etc/uv/syntax/source.context-free.syntax +176 -0
  324. data/share/etc/uv/syntax/source.css.beta.syntax +1925 -0
  325. data/share/etc/uv/syntax/source.css.syntax +195 -0
  326. data/share/etc/uv/syntax/source.d.syntax +142 -0
  327. data/share/etc/uv/syntax/source.diff.syntax +81 -0
  328. data/share/etc/uv/syntax/source.dot.syntax +47 -0
  329. data/share/etc/uv/syntax/source.dylan.syntax +62 -0
  330. data/share/etc/uv/syntax/source.eiffel.syntax +78 -0
  331. data/share/etc/uv/syntax/source.erlang.syntax +922 -0
  332. data/share/etc/uv/syntax/source.fortran.syntax +141 -0
  333. data/share/etc/uv/syntax/source.fscript.syntax +80 -0
  334. data/share/etc/uv/syntax/source.fxscript.syntax +142 -0
  335. data/share/etc/uv/syntax/source.gri.syntax +83 -0
  336. data/share/etc/uv/syntax/source.groovy.groovy.syntax +191 -0
  337. data/share/etc/uv/syntax/source.haskell.syntax +88 -0
  338. data/share/etc/uv/syntax/source.icalendar.syntax +32 -0
  339. data/share/etc/uv/syntax/source.inform.syntax +48 -0
  340. data/share/etc/uv/syntax/source.ini.syntax +55 -0
  341. data/share/etc/uv/syntax/source.io.syntax +81 -0
  342. data/share/etc/uv/syntax/source.java-props.syntax +20 -0
  343. data/share/etc/uv/syntax/source.java.syntax +211 -0
  344. data/share/etc/uv/syntax/source.js.greasemonkey.syntax +34 -0
  345. data/share/etc/uv/syntax/source.js.jquery.syntax +114 -0
  346. data/share/etc/uv/syntax/source.js.mootools.syntax +572 -0
  347. data/share/etc/uv/syntax/source.js.prototype.bracketed.syntax +140 -0
  348. data/share/etc/uv/syntax/source.js.prototype.syntax +72 -0
  349. data/share/etc/uv/syntax/source.js.syntax +256 -0
  350. data/share/etc/uv/syntax/source.js.yui.syntax +176 -0
  351. data/share/etc/uv/syntax/source.json.syntax +136 -0
  352. data/share/etc/uv/syntax/source.lex.syntax +219 -0
  353. data/share/etc/uv/syntax/source.lighttpd-config.syntax +54 -0
  354. data/share/etc/uv/syntax/source.lilypond.syntax +492 -0
  355. data/share/etc/uv/syntax/source.lisp.syntax +61 -0
  356. data/share/etc/uv/syntax/source.logo.syntax +29 -0
  357. data/share/etc/uv/syntax/source.logtalk.syntax +152 -0
  358. data/share/etc/uv/syntax/source.lua.syntax +86 -0
  359. data/share/etc/uv/syntax/source.makefile.syntax +36 -0
  360. data/share/etc/uv/syntax/source.matlab.syntax +142 -0
  361. data/share/etc/uv/syntax/source.mel.syntax +92 -0
  362. data/share/etc/uv/syntax/source.mips.syntax +66 -0
  363. data/share/etc/uv/syntax/source.ml.syntax +121 -0
  364. data/share/etc/uv/syntax/source.modula-3.syntax +47 -0
  365. data/share/etc/uv/syntax/source.nant-build.syntax +53 -0
  366. data/share/etc/uv/syntax/source.objc++.syntax +18 -0
  367. data/share/etc/uv/syntax/source.objc.syntax +233 -0
  368. data/share/etc/uv/syntax/source.ocaml.syntax +764 -0
  369. data/share/etc/uv/syntax/source.ocamllex.syntax +167 -0
  370. data/share/etc/uv/syntax/source.ocamlyacc.syntax +184 -0
  371. data/share/etc/uv/syntax/source.open-gl.syntax +14 -0
  372. data/share/etc/uv/syntax/source.pascal.syntax +77 -0
  373. data/share/etc/uv/syntax/source.pascal.vectorscript.syntax +57 -0
  374. data/share/etc/uv/syntax/source.perl.syntax +1113 -0
  375. data/share/etc/uv/syntax/source.php.cake.syntax +55 -0
  376. data/share/etc/uv/syntax/source.plist.tm-grammar.syntax +708 -0
  377. data/share/etc/uv/syntax/source.postscript.syntax +114 -0
  378. data/share/etc/uv/syntax/source.processing.syntax +106 -0
  379. data/share/etc/uv/syntax/source.prolog.syntax +40 -0
  380. data/share/etc/uv/syntax/source.python.django.syntax +21 -0
  381. data/share/etc/uv/syntax/source.python.syntax +868 -0
  382. data/share/etc/uv/syntax/source.qmake.syntax +114 -0
  383. data/share/etc/uv/syntax/source.quake-config.syntax +32 -0
  384. data/share/etc/uv/syntax/source.r-console.syntax +16 -0
  385. data/share/etc/uv/syntax/source.r.syntax +81 -0
  386. data/share/etc/uv/syntax/source.regexp.oniguruma.syntax +107 -0
  387. data/share/etc/uv/syntax/source.regexp.python.syntax +109 -0
  388. data/share/etc/uv/syntax/source.regexp.syntax +50 -0
  389. data/share/etc/uv/syntax/source.remind.syntax +253 -0
  390. data/share/etc/uv/syntax/source.rez.syntax +80 -0
  391. data/share/etc/uv/syntax/source.ruby.experimental.syntax +145 -0
  392. data/share/etc/uv/syntax/source.ruby.rails.syntax +88 -0
  393. data/share/etc/uv/syntax/source.ruby.syntax +1035 -0
  394. data/share/etc/uv/syntax/source.s5.syntax +69 -0
  395. data/share/etc/uv/syntax/source.sass.syntax +45 -0
  396. data/share/etc/uv/syntax/source.scheme.syntax +347 -0
  397. data/share/etc/uv/syntax/source.scilab.syntax +41 -0
  398. data/share/etc/uv/syntax/source.scss.syntax +527 -0
  399. data/share/etc/uv/syntax/source.shell.syntax +384 -0
  400. data/share/etc/uv/syntax/source.slate.syntax +149 -0
  401. data/share/etc/uv/syntax/source.smarty.syntax +63 -0
  402. data/share/etc/uv/syntax/source.sql.ruby.syntax +18 -0
  403. data/share/etc/uv/syntax/source.sql.syntax +237 -0
  404. data/share/etc/uv/syntax/source.ssh-config.syntax +33 -0
  405. data/share/etc/uv/syntax/source.strings.syntax +39 -0
  406. data/share/etc/uv/syntax/source.swig.syntax +57 -0
  407. data/share/etc/uv/syntax/source.tcl.macports.syntax +163 -0
  408. data/share/etc/uv/syntax/source.tcl.syntax +152 -0
  409. data/share/etc/uv/syntax/source.yaml.syntax +160 -0
  410. data/share/etc/uv/syntax/text.active4d-ini.syntax +50 -0
  411. data/share/etc/uv/syntax/text.bbcode.syntax +287 -0
  412. data/share/etc/uv/syntax/text.bibtex.syntax +151 -0
  413. data/share/etc/uv/syntax/text.blog.html.syntax +41 -0
  414. data/share/etc/uv/syntax/text.blog.markdown.syntax +42 -0
  415. data/share/etc/uv/syntax/text.blog.syntax +27 -0
  416. data/share/etc/uv/syntax/text.blog.textile.syntax +27 -0
  417. data/share/etc/uv/syntax/text.dyndoc.syntax +237 -0
  418. data/share/etc/uv/syntax/text.gtdalt.syntax +143 -0
  419. data/share/etc/uv/syntax/text.haml.syntax +88 -0
  420. data/share/etc/uv/syntax/text.html.asp.net.syntax +424 -0
  421. data/share/etc/uv/syntax/text.html.asp.syntax +27 -0
  422. data/share/etc/uv/syntax/text.html.basic.syntax +362 -0
  423. data/share/etc/uv/syntax/text.html.cfm.syntax +119 -0
  424. data/share/etc/uv/syntax/text.html.django.syntax +36 -0
  425. data/share/etc/uv/syntax/text.html.dokuwiki.syntax +204 -0
  426. data/share/etc/uv/syntax/text.html.doxygen.syntax +43 -0
  427. data/share/etc/uv/syntax/text.html.markdown.multimarkdown.syntax +39 -0
  428. data/share/etc/uv/syntax/text.html.mason.syntax +119 -0
  429. data/share/etc/uv/syntax/text.html.mediawiki.syntax +567 -0
  430. data/share/etc/uv/syntax/text.html.mt.syntax +162 -0
  431. data/share/etc/uv/syntax/text.html.ruby.syntax +40 -0
  432. data/share/etc/uv/syntax/text.html.strict.active4d.syntax +311 -0
  433. data/share/etc/uv/syntax/text.html.tcl.syntax +26 -0
  434. data/share/etc/uv/syntax/text.html.textile.syntax +215 -0
  435. data/share/etc/uv/syntax/text.html.tt.syntax +121 -0
  436. data/share/etc/uv/syntax/text.html.twiki.syntax +241 -0
  437. data/share/etc/uv/syntax/text.html.xhtml.1-strict.syntax +4027 -0
  438. data/share/etc/uv/syntax/text.log.latex.syntax +50 -0
  439. data/share/etc/uv/syntax/text.mail.markdown.syntax +118 -0
  440. data/share/etc/uv/syntax/text.man.syntax +17 -0
  441. data/share/etc/uv/syntax/text.moinmoin.syntax +189 -0
  442. data/share/etc/uv/syntax/text.plain.gtd.syntax +22 -0
  443. data/share/etc/uv/syntax/text.plain.release-notes.syntax +46 -0
  444. data/share/etc/uv/syntax/text.plain.syntax +32 -0
  445. data/share/etc/uv/syntax/text.plist.syntax +635 -0
  446. data/share/etc/uv/syntax/text.pmwiki.syntax +113 -0
  447. data/share/etc/uv/syntax/text.restructuredtext.syntax +250 -0
  448. data/share/etc/uv/syntax/text.setext.syntax +147 -0
  449. data/share/etc/uv/syntax/text.subversion-commit.syntax +36 -0
  450. data/share/etc/uv/syntax/text.tabular.csv.syntax +68 -0
  451. data/share/etc/uv/syntax/text.tabular.tsv.syntax +50 -0
  452. data/share/etc/uv/syntax/text.tex.latex.beamer.syntax +41 -0
  453. data/share/etc/uv/syntax/text.tex.latex.haskell.syntax +24 -0
  454. data/share/etc/uv/syntax/text.tex.latex.memoir.syntax +64 -0
  455. data/share/etc/uv/syntax/text.tex.latex.rd.syntax +91 -0
  456. data/share/etc/uv/syntax/text.tex.latex.sweave.syntax +84 -0
  457. data/share/etc/uv/syntax/text.tex.latex.syntax +566 -0
  458. data/share/etc/uv/syntax/text.tex.math.syntax +49 -0
  459. data/share/etc/uv/syntax/text.tex.syntax +86 -0
  460. data/share/etc/uv/syntax/text.txt2tags.syntax +79 -0
  461. data/share/etc/uv/syntax/text.xml.apple-dist.syntax +77 -0
  462. data/share/etc/uv/syntax/text.xml.strict.syntax +92 -0
  463. data/share/etc/uv/syntax/text.xml.syntax +180 -0
  464. data/share/etc/uv/syntax/text.xml.xsl.syntax +60 -0
  465. data/share/etc/uv/uv.rb +161 -0
  466. metadata +465 -1
@@ -0,0 +1,129 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+
7
+ <title>reveal.js - Markdown Demo</title>
8
+
9
+ <link rel="stylesheet" href="../../css/reveal.css">
10
+ <link rel="stylesheet" href="../../css/theme/white.css" id="theme">
11
+
12
+ <link rel="stylesheet" href="../../lib/css/zenburn.css">
13
+ </head>
14
+
15
+ <body>
16
+
17
+ <div class="reveal">
18
+
19
+ <div class="slides">
20
+
21
+ <!-- Use external markdown resource, separate slides by three newlines; vertical slides by two newlines -->
22
+ <section data-markdown="example.md" data-separator="^\n\n\n" data-separator-vertical="^\n\n"></section>
23
+
24
+ <!-- Slides are separated by three dashes (quick 'n dirty regular expression) -->
25
+ <section data-markdown data-separator="---">
26
+ <script type="text/template">
27
+ ## Demo 1
28
+ Slide 1
29
+ ---
30
+ ## Demo 1
31
+ Slide 2
32
+ ---
33
+ ## Demo 1
34
+ Slide 3
35
+ </script>
36
+ </section>
37
+
38
+ <!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
39
+ <section data-markdown data-separator="^\n---\n$" data-separator-vertical="^\n--\n$">
40
+ <script type="text/template">
41
+ ## Demo 2
42
+ Slide 1.1
43
+
44
+ --
45
+
46
+ ## Demo 2
47
+ Slide 1.2
48
+
49
+ ---
50
+
51
+ ## Demo 2
52
+ Slide 2
53
+ </script>
54
+ </section>
55
+
56
+ <!-- No "extra" slides, since there are no separators defined (so they'll become horizontal rulers) -->
57
+ <section data-markdown>
58
+ <script type="text/template">
59
+ A
60
+
61
+ ---
62
+
63
+ B
64
+
65
+ ---
66
+
67
+ C
68
+ </script>
69
+ </section>
70
+
71
+ <!-- Slide attributes -->
72
+ <section data-markdown>
73
+ <script type="text/template">
74
+ <!-- .slide: data-background="#000000" -->
75
+ ## Slide attributes
76
+ </script>
77
+ </section>
78
+
79
+ <!-- Element attributes -->
80
+ <section data-markdown>
81
+ <script type="text/template">
82
+ ## Element attributes
83
+ - Item 1 <!-- .element: class="fragment" data-fragment-index="2" -->
84
+ - Item 2 <!-- .element: class="fragment" data-fragment-index="1" -->
85
+ </script>
86
+ </section>
87
+
88
+ <!-- Code -->
89
+ <section data-markdown>
90
+ <script type="text/template">
91
+ ```php
92
+ public function foo()
93
+ {
94
+ $foo = array(
95
+ 'bar' => 'bar'
96
+ )
97
+ }
98
+ ```
99
+ </script>
100
+ </section>
101
+
102
+ </div>
103
+ </div>
104
+
105
+ <script src="../../lib/js/head.min.js"></script>
106
+ <script src="../../js/reveal.js"></script>
107
+
108
+ <script>
109
+
110
+ Reveal.initialize({
111
+ controls: true,
112
+ progress: true,
113
+ history: true,
114
+ center: true,
115
+
116
+ // Optional libraries used to extend on reveal.js
117
+ dependencies: [
118
+ { src: '../../lib/js/classList.js', condition: function() { return !document.body.classList; } },
119
+ { src: 'marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
120
+ { src: 'markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
121
+ { src: '../highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
122
+ { src: '../notes/notes.js' }
123
+ ]
124
+ });
125
+
126
+ </script>
127
+
128
+ </body>
129
+ </html>
@@ -0,0 +1,31 @@
1
+ # Markdown Demo
2
+
3
+
4
+
5
+ ## External 1.1
6
+
7
+ Content 1.1
8
+
9
+ Note: This will only appear in the speaker notes window.
10
+
11
+
12
+ ## External 1.2
13
+
14
+ Content 1.2
15
+
16
+
17
+
18
+ ## External 2
19
+
20
+ Content 2.1
21
+
22
+
23
+
24
+ ## External 3.1
25
+
26
+ Content 3.1
27
+
28
+
29
+ ## External 3.2
30
+
31
+ Content 3.2
@@ -0,0 +1,393 @@
1
+ /**
2
+ * The reveal.js markdown plugin. Handles parsing of
3
+ * markdown inside of presentations as well as loading
4
+ * of external markdown documents.
5
+ */
6
+ (function( root, factory ) {
7
+ if( typeof exports === 'object' ) {
8
+ module.exports = factory( require( './marked' ) );
9
+ }
10
+ else {
11
+ // Browser globals (root is window)
12
+ root.RevealMarkdown = factory( root.marked );
13
+ root.RevealMarkdown.initialize();
14
+ }
15
+ }( this, function( marked ) {
16
+
17
+ if( typeof marked === 'undefined' ) {
18
+ throw 'The reveal.js Markdown plugin requires marked to be loaded';
19
+ }
20
+
21
+ if( typeof hljs !== 'undefined' ) {
22
+ marked.setOptions({
23
+ highlight: function( lang, code ) {
24
+ return hljs.highlightAuto( lang, code ).value;
25
+ }
26
+ });
27
+ }
28
+
29
+ var DEFAULT_SLIDE_SEPARATOR = '^\r?\n---\r?\n$',
30
+ DEFAULT_NOTES_SEPARATOR = 'note:',
31
+ DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR = '\\\.element\\\s*?(.+?)$',
32
+ DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR = '\\\.slide:\\\s*?(\\\S.+?)$';
33
+
34
+
35
+ /**
36
+ * Retrieves the markdown contents of a slide section
37
+ * element. Normalizes leading tabs/whitespace.
38
+ */
39
+ function getMarkdownFromSlide( section ) {
40
+
41
+ var template = section.querySelector( 'script' );
42
+
43
+ // strip leading whitespace so it isn't evaluated as code
44
+ var text = ( template || section ).textContent;
45
+
46
+ var leadingWs = text.match( /^\n?(\s*)/ )[1].length,
47
+ leadingTabs = text.match( /^\n?(\t*)/ )[1].length;
48
+
49
+ if( leadingTabs > 0 ) {
50
+ text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' );
51
+ }
52
+ else if( leadingWs > 1 ) {
53
+ text = text.replace( new RegExp('\\n? {' + leadingWs + '}', 'g'), '\n' );
54
+ }
55
+
56
+ return text;
57
+
58
+ }
59
+
60
+ /**
61
+ * Given a markdown slide section element, this will
62
+ * return all arguments that aren't related to markdown
63
+ * parsing. Used to forward any other user-defined arguments
64
+ * to the output markdown slide.
65
+ */
66
+ function getForwardedAttributes( section ) {
67
+
68
+ var attributes = section.attributes;
69
+ var result = [];
70
+
71
+ for( var i = 0, len = attributes.length; i < len; i++ ) {
72
+ var name = attributes[i].name,
73
+ value = attributes[i].value;
74
+
75
+ // disregard attributes that are used for markdown loading/parsing
76
+ if( /data\-(markdown|separator|vertical|notes)/gi.test( name ) ) continue;
77
+
78
+ if( value ) {
79
+ result.push( name + '="' + value + '"' );
80
+ }
81
+ else {
82
+ result.push( name );
83
+ }
84
+ }
85
+
86
+ return result.join( ' ' );
87
+
88
+ }
89
+
90
+ /**
91
+ * Inspects the given options and fills out default
92
+ * values for what's not defined.
93
+ */
94
+ function getSlidifyOptions( options ) {
95
+
96
+ options = options || {};
97
+ options.separator = options.separator || DEFAULT_SLIDE_SEPARATOR;
98
+ options.notesSeparator = options.notesSeparator || DEFAULT_NOTES_SEPARATOR;
99
+ options.attributes = options.attributes || '';
100
+
101
+ return options;
102
+
103
+ }
104
+
105
+ /**
106
+ * Helper function for constructing a markdown slide.
107
+ */
108
+ function createMarkdownSlide( content, options ) {
109
+
110
+ options = getSlidifyOptions( options );
111
+
112
+ var notesMatch = content.split( new RegExp( options.notesSeparator, 'mgi' ) );
113
+
114
+ if( notesMatch.length === 2 ) {
115
+ content = notesMatch[0] + '<aside class="notes" data-markdown>' + notesMatch[1].trim() + '</aside>';
116
+ }
117
+
118
+ return '<script type="text/template">' + content + '</script>';
119
+
120
+ }
121
+
122
+ /**
123
+ * Parses a data string into multiple slides based
124
+ * on the passed in separator arguments.
125
+ */
126
+ function slidify( markdown, options ) {
127
+
128
+ options = getSlidifyOptions( options );
129
+
130
+ var separatorRegex = new RegExp( options.separator + ( options.verticalSeparator ? '|' + options.verticalSeparator : '' ), 'mg' ),
131
+ horizontalSeparatorRegex = new RegExp( options.separator );
132
+
133
+ var matches,
134
+ lastIndex = 0,
135
+ isHorizontal,
136
+ wasHorizontal = true,
137
+ content,
138
+ sectionStack = [];
139
+
140
+ // iterate until all blocks between separators are stacked up
141
+ while( matches = separatorRegex.exec( markdown ) ) {
142
+ notes = null;
143
+
144
+ // determine direction (horizontal by default)
145
+ isHorizontal = horizontalSeparatorRegex.test( matches[0] );
146
+
147
+ if( !isHorizontal && wasHorizontal ) {
148
+ // create vertical stack
149
+ sectionStack.push( [] );
150
+ }
151
+
152
+ // pluck slide content from markdown input
153
+ content = markdown.substring( lastIndex, matches.index );
154
+
155
+ if( isHorizontal && wasHorizontal ) {
156
+ // add to horizontal stack
157
+ sectionStack.push( content );
158
+ }
159
+ else {
160
+ // add to vertical stack
161
+ sectionStack[sectionStack.length-1].push( content );
162
+ }
163
+
164
+ lastIndex = separatorRegex.lastIndex;
165
+ wasHorizontal = isHorizontal;
166
+ }
167
+
168
+ // add the remaining slide
169
+ ( wasHorizontal ? sectionStack : sectionStack[sectionStack.length-1] ).push( markdown.substring( lastIndex ) );
170
+
171
+ var markdownSections = '';
172
+
173
+ // flatten the hierarchical stack, and insert <section data-markdown> tags
174
+ for( var i = 0, len = sectionStack.length; i < len; i++ ) {
175
+ // vertical
176
+ if( sectionStack[i] instanceof Array ) {
177
+ markdownSections += '<section '+ options.attributes +'>';
178
+
179
+ sectionStack[i].forEach( function( child ) {
180
+ markdownSections += '<section data-markdown>' + createMarkdownSlide( child, options ) + '</section>';
181
+ } );
182
+
183
+ markdownSections += '</section>';
184
+ }
185
+ else {
186
+ markdownSections += '<section '+ options.attributes +' data-markdown>' + createMarkdownSlide( sectionStack[i], options ) + '</section>';
187
+ }
188
+ }
189
+
190
+ return markdownSections;
191
+
192
+ }
193
+
194
+ /**
195
+ * Parses any current data-markdown slides, splits
196
+ * multi-slide markdown into separate sections and
197
+ * handles loading of external markdown.
198
+ */
199
+ function processSlides() {
200
+
201
+ var sections = document.querySelectorAll( '[data-markdown]'),
202
+ section;
203
+
204
+ for( var i = 0, len = sections.length; i < len; i++ ) {
205
+
206
+ section = sections[i];
207
+
208
+ if( section.getAttribute( 'data-markdown' ).length ) {
209
+
210
+ var xhr = new XMLHttpRequest(),
211
+ url = section.getAttribute( 'data-markdown' );
212
+
213
+ datacharset = section.getAttribute( 'data-charset' );
214
+
215
+ // see https://developer.mozilla.org/en-US/docs/Web/API/element.getAttribute#Notes
216
+ if( datacharset != null && datacharset != '' ) {
217
+ xhr.overrideMimeType( 'text/html; charset=' + datacharset );
218
+ }
219
+
220
+ xhr.onreadystatechange = function() {
221
+ if( xhr.readyState === 4 ) {
222
+ // file protocol yields status code 0 (useful for local debug, mobile applications etc.)
223
+ if ( ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status === 0 ) {
224
+
225
+ section.outerHTML = slidify( xhr.responseText, {
226
+ separator: section.getAttribute( 'data-separator' ),
227
+ verticalSeparator: section.getAttribute( 'data-separator-vertical' ),
228
+ notesSeparator: section.getAttribute( 'data-separator-notes' ),
229
+ attributes: getForwardedAttributes( section )
230
+ });
231
+
232
+ }
233
+ else {
234
+
235
+ section.outerHTML = '<section data-state="alert">' +
236
+ 'ERROR: The attempt to fetch ' + url + ' failed with HTTP status ' + xhr.status + '.' +
237
+ 'Check your browser\'s JavaScript console for more details.' +
238
+ '<p>Remember that you need to serve the presentation HTML from a HTTP server.</p>' +
239
+ '</section>';
240
+
241
+ }
242
+ }
243
+ };
244
+
245
+ xhr.open( 'GET', url, false );
246
+
247
+ try {
248
+ xhr.send();
249
+ }
250
+ catch ( e ) {
251
+ alert( 'Failed to get the Markdown file ' + url + '. Make sure that the presentation and the file are served by a HTTP server and the file can be found there. ' + e );
252
+ }
253
+
254
+ }
255
+ else if( section.getAttribute( 'data-separator' ) || section.getAttribute( 'data-separator-vertical' ) || section.getAttribute( 'data-separator-notes' ) ) {
256
+
257
+ section.outerHTML = slidify( getMarkdownFromSlide( section ), {
258
+ separator: section.getAttribute( 'data-separator' ),
259
+ verticalSeparator: section.getAttribute( 'data-separator-vertical' ),
260
+ notesSeparator: section.getAttribute( 'data-separator-notes' ),
261
+ attributes: getForwardedAttributes( section )
262
+ });
263
+
264
+ }
265
+ else {
266
+ section.innerHTML = createMarkdownSlide( getMarkdownFromSlide( section ) );
267
+ }
268
+ }
269
+
270
+ }
271
+
272
+ /**
273
+ * Check if a node value has the attributes pattern.
274
+ * If yes, extract it and add that value as one or several attributes
275
+ * the the terget element.
276
+ *
277
+ * You need Cache Killer on Chrome to see the effect on any FOM transformation
278
+ * directly on refresh (F5)
279
+ * http://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development/7000899#answer-11786277
280
+ */
281
+ function addAttributeInElement( node, elementTarget, separator ) {
282
+
283
+ var mardownClassesInElementsRegex = new RegExp( separator, 'mg' );
284
+ var mardownClassRegex = new RegExp( "([^\"= ]+?)=\"([^\"=]+?)\"", 'mg' );
285
+ var nodeValue = node.nodeValue;
286
+ if( matches = mardownClassesInElementsRegex.exec( nodeValue ) ) {
287
+
288
+ var classes = matches[1];
289
+ nodeValue = nodeValue.substring( 0, matches.index ) + nodeValue.substring( mardownClassesInElementsRegex.lastIndex );
290
+ node.nodeValue = nodeValue;
291
+ while( matchesClass = mardownClassRegex.exec( classes ) ) {
292
+ elementTarget.setAttribute( matchesClass[1], matchesClass[2] );
293
+ }
294
+ return true;
295
+ }
296
+ return false;
297
+ }
298
+
299
+ /**
300
+ * Add attributes to the parent element of a text node,
301
+ * or the element of an attribute node.
302
+ */
303
+ function addAttributes( section, element, previousElement, separatorElementAttributes, separatorSectionAttributes ) {
304
+
305
+ if ( element != null && element.childNodes != undefined && element.childNodes.length > 0 ) {
306
+ previousParentElement = element;
307
+ for( var i = 0; i < element.childNodes.length; i++ ) {
308
+ childElement = element.childNodes[i];
309
+ if ( i > 0 ) {
310
+ j = i - 1;
311
+ while ( j >= 0 ) {
312
+ aPreviousChildElement = element.childNodes[j];
313
+ if ( typeof aPreviousChildElement.setAttribute == 'function' && aPreviousChildElement.tagName != "BR" ) {
314
+ previousParentElement = aPreviousChildElement;
315
+ break;
316
+ }
317
+ j = j - 1;
318
+ }
319
+ }
320
+ parentSection = section;
321
+ if( childElement.nodeName == "section" ) {
322
+ parentSection = childElement ;
323
+ previousParentElement = childElement ;
324
+ }
325
+ if ( typeof childElement.setAttribute == 'function' || childElement.nodeType == Node.COMMENT_NODE ) {
326
+ addAttributes( parentSection, childElement, previousParentElement, separatorElementAttributes, separatorSectionAttributes );
327
+ }
328
+ }
329
+ }
330
+
331
+ if ( element.nodeType == Node.COMMENT_NODE ) {
332
+ if ( addAttributeInElement( element, previousElement, separatorElementAttributes ) == false ) {
333
+ addAttributeInElement( element, section, separatorSectionAttributes );
334
+ }
335
+ }
336
+ }
337
+
338
+ /**
339
+ * Converts any current data-markdown slides in the
340
+ * DOM to HTML.
341
+ */
342
+ function convertSlides() {
343
+
344
+ var sections = document.querySelectorAll( '[data-markdown]');
345
+
346
+ for( var i = 0, len = sections.length; i < len; i++ ) {
347
+
348
+ var section = sections[i];
349
+
350
+ // Only parse the same slide once
351
+ if( !section.getAttribute( 'data-markdown-parsed' ) ) {
352
+
353
+ section.setAttribute( 'data-markdown-parsed', true )
354
+
355
+ var notes = section.querySelector( 'aside.notes' );
356
+ var markdown = getMarkdownFromSlide( section );
357
+
358
+ section.innerHTML = marked( markdown );
359
+ addAttributes( section, section, null, section.getAttribute( 'data-element-attributes' ) ||
360
+ section.parentNode.getAttribute( 'data-element-attributes' ) ||
361
+ DEFAULT_ELEMENT_ATTRIBUTES_SEPARATOR,
362
+ section.getAttribute( 'data-attributes' ) ||
363
+ section.parentNode.getAttribute( 'data-attributes' ) ||
364
+ DEFAULT_SLIDE_ATTRIBUTES_SEPARATOR);
365
+
366
+ // If there were notes, we need to re-add them after
367
+ // having overwritten the section's HTML
368
+ if( notes ) {
369
+ section.appendChild( notes );
370
+ }
371
+
372
+ }
373
+
374
+ }
375
+
376
+ }
377
+
378
+ // API
379
+ return {
380
+
381
+ initialize: function() {
382
+ processSlides();
383
+ convertSlides();
384
+ },
385
+
386
+ // TODO: Do these belong in the API?
387
+ processSlides: processSlides,
388
+ convertSlides: convertSlides,
389
+ slidify: slidify
390
+
391
+ };
392
+
393
+ }));