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.
- checksums.yaml +4 -4
- data/bin/dyn-init.rb +9 -0
- data/share/demo/first.dyn +38 -0
- data/share/demo/second.dyn +87 -0
- data/share/demo/simple.dyn +10 -0
- data/share/demo/simple_lib.dyn +2 -0
- data/share/demo/simple_lib2.dyn +2 -0
- data/share/demo/testBeamer.dyn +77 -0
- data/share/demo/testBeamer_lib.dyn +7 -0
- data/share/demo/test_atom.dyn +79 -0
- data/share/etc/alias +3 -0
- data/share/etc/dyndoc_library_path +1 -0
- data/share/etc/helpers +1 -0
- data/share/etc/pandoc/README.INSTALL +1 -0
- data/share/etc/pandoc/config.rb +4 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/CONTRIBUTING.md +19 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/Gruntfile.js +174 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/LICENSE +19 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/README.md +950 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/paper.css +202 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/pdf.css +157 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.css +1141 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.min.css +1141 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.scss +1316 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/README.md +25 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/beige.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/black.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/blood.css +291 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/default.css +268 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/league.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/moon.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/night.css +259 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/serif.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/simple.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/sky.css +268 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/solarized.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/beige.scss +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/black.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/blood.scss +91 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/league.scss +34 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/moon.scss +57 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/night.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/serif.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/simple.scss +38 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/sky.scss +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/solarized.scss +63 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/white.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/mixins.scss +29 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/settings.scss +43 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/theme.scss +339 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/white.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/index.html +408 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.js +4276 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.min.js +4276 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/css/zenburn.css +117 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/LICENSE +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.css +10 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/LICENSE +45 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/classList.js +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/head.min.js +8 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/html5shiv.js +7 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/package.json +48 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/highlight/highlight.js +30 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/leap/leap.js +159 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.html +129 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.md +31 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/markdown.js +393 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/marked.js +37 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/math/math.js +64 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/client.js +13 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/index.js +56 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/master.js +51 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/client.js +60 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/index.js +66 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/notes.html +396 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.html +406 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.js +122 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/print-pdf/print-pdf.js +48 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/remotes/remotes.js +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/search/search.js +196 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/zoom-js/zoom.js +278 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/assets/image1.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/assets/image2.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/barebones.html +41 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/embedded-media.html +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/math.html +185 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/slide-backgrounds.html +144 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.css +244 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.js +2212 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.html +134 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.js +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.html +128 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.js +47 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.html +52 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.html +83 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.html +82 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.js +572 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/CONTRIBUTING.md +23 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/Gruntfile.js +170 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/LICENSE +19 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/README.md +1050 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/paper.css +202 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/pdf.css +157 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.css +1175 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.scss +1319 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/README.md +23 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/beige.css +271 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/black.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/blood.css +285 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/league.css +273 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/moon.css +271 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/night.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/serif.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/simple.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/sky.css +274 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/solarized.css +271 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/beige.scss +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/black.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/blood.scss +79 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/league.scss +34 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/moon.scss +57 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/night.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/serif.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/simple.scss +38 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/sky.scss +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/solarized.scss +63 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/white.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/mixins.scss +29 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/settings.scss +43 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/theme.scss +349 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/white.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/index.html +411 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/js/reveal.js +4508 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/css/zenburn.css +117 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/LICENSE +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.css +10 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/LICENSE +45 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/classList.js +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/head.min.js +8 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/html5shiv.js +7 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/package.json +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/highlight/highlight.js +30 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/leap/leap.js +159 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.html +129 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.md +31 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/markdown.js +393 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/marked.js +6 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/math/math.js +64 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/client.js +13 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/index.js +56 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/master.js +51 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/client.js +60 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/index.js +66 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/notes.html +396 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.html +406 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.js +122 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/print-pdf/print-pdf.js +48 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/remotes/remotes.js +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/search/search.js +196 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/zoom-js/zoom.js +278 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/assets/image1.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/assets/image2.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/barebones.html +41 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/embedded-media.html +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/math.html +185 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-backgrounds.html +144 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-transitions.html +101 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.css +244 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.js +2212 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.html +134 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.js +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.html +128 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.js +47 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.html +52 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.html +83 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.html +85 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.js +589 -0
- data/share/etc/pandoc/extra/s5-ui/default/blank.gif +0 -0
- data/share/etc/pandoc/extra/s5-ui/default/bodybg.gif +0 -0
- data/share/etc/pandoc/extra/s5-ui/default/framing.css +23 -0
- data/share/etc/pandoc/extra/s5-ui/default/iepngfix.htc +42 -0
- data/share/etc/pandoc/extra/s5-ui/default/opera.css +7 -0
- data/share/etc/pandoc/extra/s5-ui/default/outline.css +15 -0
- data/share/etc/pandoc/extra/s5-ui/default/pretty.css +86 -0
- data/share/etc/pandoc/extra/s5-ui/default/print.css +1 -0
- data/share/etc/pandoc/extra/s5-ui/default/s5-core.css +9 -0
- data/share/etc/pandoc/extra/s5-ui/default/slides.css +3 -0
- data/share/etc/pandoc/extra/s5-ui/default/slides.js +553 -0
- data/share/etc/uv/render/README +1 -0
- data/share/etc/uv/render/latex/-h.yaml +1 -0
- data/share/etc/uv/render/latex/active4d.render +136 -0
- data/share/etc/uv/render/latex/all_hallows_eve.render +100 -0
- data/share/etc/uv/render/latex/amy.render +175 -0
- data/share/etc/uv/render/latex/blackboard.render +115 -0
- data/share/etc/uv/render/latex/brilliance_black.render +556 -0
- data/share/etc/uv/render/latex/brilliance_dull.render +565 -0
- data/share/etc/uv/render/latex/cobalt.render +166 -0
- data/share/etc/uv/render/latex/dawn.render +130 -0
- data/share/etc/uv/render/latex/eiffel.render +136 -0
- data/share/etc/uv/render/latex/espresso_libre.render +127 -0
- data/share/etc/uv/render/latex/idle.render +97 -0
- data/share/etc/uv/render/latex/iplastic.render +103 -0
- data/share/etc/uv/render/latex/lazy.render +100 -0
- data/share/etc/uv/render/latex/mac_classic.render +139 -0
- data/share/etc/uv/render/latex/magicwb_amiga.render +121 -0
- data/share/etc/uv/render/latex/pastels_on_dark.render +208 -0
- data/share/etc/uv/render/latex/slush_poppies.render +127 -0
- data/share/etc/uv/render/latex/solarized.render +495 -0
- data/share/etc/uv/render/latex/spacecadet.render +85 -0
- data/share/etc/uv/render/latex/sunburst.render +190 -0
- data/share/etc/uv/render/latex/twilight.render +157 -0
- data/share/etc/uv/render/latex/zenburnesque.render +130 -0
- data/share/etc/uv/render/old/txt2tags.render +131 -0
- data/share/etc/uv/render/theme2latexrender +123 -0
- data/share/etc/uv/render/theme2xhtmlrender +157 -0
- data/share/etc/uv/render/tmTheme/solarized.tmTheme +1875 -0
- data/share/etc/uv/render/xhtml/active4d.render +140 -0
- data/share/etc/uv/render/xhtml/all_hallows_eve.render +104 -0
- data/share/etc/uv/render/xhtml/amy.render +179 -0
- data/share/etc/uv/render/xhtml/blackboard.render +119 -0
- data/share/etc/uv/render/xhtml/brilliance_black.render +560 -0
- data/share/etc/uv/render/xhtml/brilliance_dull.render +569 -0
- data/share/etc/uv/render/xhtml/cobalt.render +170 -0
- data/share/etc/uv/render/xhtml/dawn.render +134 -0
- data/share/etc/uv/render/xhtml/eiffel.render +140 -0
- data/share/etc/uv/render/xhtml/espresso_libre.render +131 -0
- data/share/etc/uv/render/xhtml/files/css/active4d.css +114 -0
- data/share/etc/uv/render/xhtml/files/css/all_hallows_eve.css +72 -0
- data/share/etc/uv/render/xhtml/files/css/amy.css +147 -0
- data/share/etc/uv/render/xhtml/files/css/blackboard.css +88 -0
- data/share/etc/uv/render/xhtml/files/css/brilliance_black.css +605 -0
- data/share/etc/uv/render/xhtml/files/css/brilliance_dull.css +599 -0
- data/share/etc/uv/render/xhtml/files/css/cobalt.css +149 -0
- data/share/etc/uv/render/xhtml/files/css/dawn.css +121 -0
- data/share/etc/uv/render/xhtml/files/css/eiffel.css +121 -0
- data/share/etc/uv/render/xhtml/files/css/espresso_libre.css +109 -0
- data/share/etc/uv/render/xhtml/files/css/idle.css +62 -0
- data/share/etc/uv/render/xhtml/files/css/iplastic.css +80 -0
- data/share/etc/uv/render/xhtml/files/css/lazy.css +73 -0
- data/share/etc/uv/render/xhtml/files/css/mac_classic.css +123 -0
- data/share/etc/uv/render/xhtml/files/css/magicwb_amiga.css +104 -0
- data/share/etc/uv/render/xhtml/files/css/pastels_on_dark.css +188 -0
- data/share/etc/uv/render/xhtml/files/css/slush_poppies.css +85 -0
- data/share/etc/uv/render/xhtml/files/css/solarized.css +478 -0
- data/share/etc/uv/render/xhtml/files/css/spacecadet.css +51 -0
- data/share/etc/uv/render/xhtml/files/css/sunburst.css +180 -0
- data/share/etc/uv/render/xhtml/files/css/twilight.css +137 -0
- data/share/etc/uv/render/xhtml/files/css/zenburnesque.css +91 -0
- data/share/etc/uv/render/xhtml/idle.render +101 -0
- data/share/etc/uv/render/xhtml/iplastic.render +107 -0
- data/share/etc/uv/render/xhtml/lazy.render +104 -0
- data/share/etc/uv/render/xhtml/mac_classic.render +143 -0
- data/share/etc/uv/render/xhtml/magicwb_amiga.render +125 -0
- data/share/etc/uv/render/xhtml/pastels_on_dark.render +212 -0
- data/share/etc/uv/render/xhtml/slush_poppies.render +131 -0
- data/share/etc/uv/render/xhtml/solarized.render +503 -0
- data/share/etc/uv/render/xhtml/spacecadet.render +89 -0
- data/share/etc/uv/render/xhtml/sunburst.render +194 -0
- data/share/etc/uv/render/xhtml/twilight.render +161 -0
- data/share/etc/uv/render/xhtml/zenburnesque.render +134 -0
- data/share/etc/uv/syntax/broken/markdown.syntax +519 -0
- data/share/etc/uv/syntax/broken/php.syntax +1253 -0
- data/share/etc/uv/syntax/buggy/nemerle.syntax +74 -0
- data/share/etc/uv/syntax/dyndoc.syntax +237 -0
- data/share/etc/uv/syntax/old/YAML.yaml +160 -0
- data/share/etc/uv/syntax/old/txt2tags.yaml +139 -0
- data/share/etc/uv/syntax/r.syntax +81 -0
- data/share/etc/uv/syntax/ruby.syntax +1035 -0
- data/share/etc/uv/syntax/source.actionscript.syntax +97 -0
- data/share/etc/uv/syntax/source.active4d.library.syntax +21 -0
- data/share/etc/uv/syntax/source.active4d.syntax +276 -0
- data/share/etc/uv/syntax/source.ada.syntax +33 -0
- data/share/etc/uv/syntax/source.antlr.syntax +151 -0
- data/share/etc/uv/syntax/source.apache-config.mod_perl.syntax +50 -0
- data/share/etc/uv/syntax/source.apache-config.syntax +191 -0
- data/share/etc/uv/syntax/source.applescript.syntax +384 -0
- data/share/etc/uv/syntax/source.asp.syntax +70 -0
- data/share/etc/uv/syntax/source.asp.vb.net.syntax +129 -0
- data/share/etc/uv/syntax/source.c++.qt.syntax +26 -0
- data/share/etc/uv/syntax/source.c++.syntax +186 -0
- data/share/etc/uv/syntax/source.c-sharp.syntax +59 -0
- data/share/etc/uv/syntax/source.c.ragel.syntax +201 -0
- data/share/etc/uv/syntax/source.c.syntax +414 -0
- data/share/etc/uv/syntax/source.camlp4.ocaml.syntax +36 -0
- data/share/etc/uv/syntax/source.cm.syntax +32 -0
- data/share/etc/uv/syntax/source.coffee.syntax +216 -0
- data/share/etc/uv/syntax/source.context-free.syntax +176 -0
- data/share/etc/uv/syntax/source.css.beta.syntax +1925 -0
- data/share/etc/uv/syntax/source.css.syntax +195 -0
- data/share/etc/uv/syntax/source.d.syntax +142 -0
- data/share/etc/uv/syntax/source.diff.syntax +81 -0
- data/share/etc/uv/syntax/source.dot.syntax +47 -0
- data/share/etc/uv/syntax/source.dylan.syntax +62 -0
- data/share/etc/uv/syntax/source.eiffel.syntax +78 -0
- data/share/etc/uv/syntax/source.erlang.syntax +922 -0
- data/share/etc/uv/syntax/source.fortran.syntax +141 -0
- data/share/etc/uv/syntax/source.fscript.syntax +80 -0
- data/share/etc/uv/syntax/source.fxscript.syntax +142 -0
- data/share/etc/uv/syntax/source.gri.syntax +83 -0
- data/share/etc/uv/syntax/source.groovy.groovy.syntax +191 -0
- data/share/etc/uv/syntax/source.haskell.syntax +88 -0
- data/share/etc/uv/syntax/source.icalendar.syntax +32 -0
- data/share/etc/uv/syntax/source.inform.syntax +48 -0
- data/share/etc/uv/syntax/source.ini.syntax +55 -0
- data/share/etc/uv/syntax/source.io.syntax +81 -0
- data/share/etc/uv/syntax/source.java-props.syntax +20 -0
- data/share/etc/uv/syntax/source.java.syntax +211 -0
- data/share/etc/uv/syntax/source.js.greasemonkey.syntax +34 -0
- data/share/etc/uv/syntax/source.js.jquery.syntax +114 -0
- data/share/etc/uv/syntax/source.js.mootools.syntax +572 -0
- data/share/etc/uv/syntax/source.js.prototype.bracketed.syntax +140 -0
- data/share/etc/uv/syntax/source.js.prototype.syntax +72 -0
- data/share/etc/uv/syntax/source.js.syntax +256 -0
- data/share/etc/uv/syntax/source.js.yui.syntax +176 -0
- data/share/etc/uv/syntax/source.json.syntax +136 -0
- data/share/etc/uv/syntax/source.lex.syntax +219 -0
- data/share/etc/uv/syntax/source.lighttpd-config.syntax +54 -0
- data/share/etc/uv/syntax/source.lilypond.syntax +492 -0
- data/share/etc/uv/syntax/source.lisp.syntax +61 -0
- data/share/etc/uv/syntax/source.logo.syntax +29 -0
- data/share/etc/uv/syntax/source.logtalk.syntax +152 -0
- data/share/etc/uv/syntax/source.lua.syntax +86 -0
- data/share/etc/uv/syntax/source.makefile.syntax +36 -0
- data/share/etc/uv/syntax/source.matlab.syntax +142 -0
- data/share/etc/uv/syntax/source.mel.syntax +92 -0
- data/share/etc/uv/syntax/source.mips.syntax +66 -0
- data/share/etc/uv/syntax/source.ml.syntax +121 -0
- data/share/etc/uv/syntax/source.modula-3.syntax +47 -0
- data/share/etc/uv/syntax/source.nant-build.syntax +53 -0
- data/share/etc/uv/syntax/source.objc++.syntax +18 -0
- data/share/etc/uv/syntax/source.objc.syntax +233 -0
- data/share/etc/uv/syntax/source.ocaml.syntax +764 -0
- data/share/etc/uv/syntax/source.ocamllex.syntax +167 -0
- data/share/etc/uv/syntax/source.ocamlyacc.syntax +184 -0
- data/share/etc/uv/syntax/source.open-gl.syntax +14 -0
- data/share/etc/uv/syntax/source.pascal.syntax +77 -0
- data/share/etc/uv/syntax/source.pascal.vectorscript.syntax +57 -0
- data/share/etc/uv/syntax/source.perl.syntax +1113 -0
- data/share/etc/uv/syntax/source.php.cake.syntax +55 -0
- data/share/etc/uv/syntax/source.plist.tm-grammar.syntax +708 -0
- data/share/etc/uv/syntax/source.postscript.syntax +114 -0
- data/share/etc/uv/syntax/source.processing.syntax +106 -0
- data/share/etc/uv/syntax/source.prolog.syntax +40 -0
- data/share/etc/uv/syntax/source.python.django.syntax +21 -0
- data/share/etc/uv/syntax/source.python.syntax +868 -0
- data/share/etc/uv/syntax/source.qmake.syntax +114 -0
- data/share/etc/uv/syntax/source.quake-config.syntax +32 -0
- data/share/etc/uv/syntax/source.r-console.syntax +16 -0
- data/share/etc/uv/syntax/source.r.syntax +81 -0
- data/share/etc/uv/syntax/source.regexp.oniguruma.syntax +107 -0
- data/share/etc/uv/syntax/source.regexp.python.syntax +109 -0
- data/share/etc/uv/syntax/source.regexp.syntax +50 -0
- data/share/etc/uv/syntax/source.remind.syntax +253 -0
- data/share/etc/uv/syntax/source.rez.syntax +80 -0
- data/share/etc/uv/syntax/source.ruby.experimental.syntax +145 -0
- data/share/etc/uv/syntax/source.ruby.rails.syntax +88 -0
- data/share/etc/uv/syntax/source.ruby.syntax +1035 -0
- data/share/etc/uv/syntax/source.s5.syntax +69 -0
- data/share/etc/uv/syntax/source.sass.syntax +45 -0
- data/share/etc/uv/syntax/source.scheme.syntax +347 -0
- data/share/etc/uv/syntax/source.scilab.syntax +41 -0
- data/share/etc/uv/syntax/source.scss.syntax +527 -0
- data/share/etc/uv/syntax/source.shell.syntax +384 -0
- data/share/etc/uv/syntax/source.slate.syntax +149 -0
- data/share/etc/uv/syntax/source.smarty.syntax +63 -0
- data/share/etc/uv/syntax/source.sql.ruby.syntax +18 -0
- data/share/etc/uv/syntax/source.sql.syntax +237 -0
- data/share/etc/uv/syntax/source.ssh-config.syntax +33 -0
- data/share/etc/uv/syntax/source.strings.syntax +39 -0
- data/share/etc/uv/syntax/source.swig.syntax +57 -0
- data/share/etc/uv/syntax/source.tcl.macports.syntax +163 -0
- data/share/etc/uv/syntax/source.tcl.syntax +152 -0
- data/share/etc/uv/syntax/source.yaml.syntax +160 -0
- data/share/etc/uv/syntax/text.active4d-ini.syntax +50 -0
- data/share/etc/uv/syntax/text.bbcode.syntax +287 -0
- data/share/etc/uv/syntax/text.bibtex.syntax +151 -0
- data/share/etc/uv/syntax/text.blog.html.syntax +41 -0
- data/share/etc/uv/syntax/text.blog.markdown.syntax +42 -0
- data/share/etc/uv/syntax/text.blog.syntax +27 -0
- data/share/etc/uv/syntax/text.blog.textile.syntax +27 -0
- data/share/etc/uv/syntax/text.dyndoc.syntax +237 -0
- data/share/etc/uv/syntax/text.gtdalt.syntax +143 -0
- data/share/etc/uv/syntax/text.haml.syntax +88 -0
- data/share/etc/uv/syntax/text.html.asp.net.syntax +424 -0
- data/share/etc/uv/syntax/text.html.asp.syntax +27 -0
- data/share/etc/uv/syntax/text.html.basic.syntax +362 -0
- data/share/etc/uv/syntax/text.html.cfm.syntax +119 -0
- data/share/etc/uv/syntax/text.html.django.syntax +36 -0
- data/share/etc/uv/syntax/text.html.dokuwiki.syntax +204 -0
- data/share/etc/uv/syntax/text.html.doxygen.syntax +43 -0
- data/share/etc/uv/syntax/text.html.markdown.multimarkdown.syntax +39 -0
- data/share/etc/uv/syntax/text.html.mason.syntax +119 -0
- data/share/etc/uv/syntax/text.html.mediawiki.syntax +567 -0
- data/share/etc/uv/syntax/text.html.mt.syntax +162 -0
- data/share/etc/uv/syntax/text.html.ruby.syntax +40 -0
- data/share/etc/uv/syntax/text.html.strict.active4d.syntax +311 -0
- data/share/etc/uv/syntax/text.html.tcl.syntax +26 -0
- data/share/etc/uv/syntax/text.html.textile.syntax +215 -0
- data/share/etc/uv/syntax/text.html.tt.syntax +121 -0
- data/share/etc/uv/syntax/text.html.twiki.syntax +241 -0
- data/share/etc/uv/syntax/text.html.xhtml.1-strict.syntax +4027 -0
- data/share/etc/uv/syntax/text.log.latex.syntax +50 -0
- data/share/etc/uv/syntax/text.mail.markdown.syntax +118 -0
- data/share/etc/uv/syntax/text.man.syntax +17 -0
- data/share/etc/uv/syntax/text.moinmoin.syntax +189 -0
- data/share/etc/uv/syntax/text.plain.gtd.syntax +22 -0
- data/share/etc/uv/syntax/text.plain.release-notes.syntax +46 -0
- data/share/etc/uv/syntax/text.plain.syntax +32 -0
- data/share/etc/uv/syntax/text.plist.syntax +635 -0
- data/share/etc/uv/syntax/text.pmwiki.syntax +113 -0
- data/share/etc/uv/syntax/text.restructuredtext.syntax +250 -0
- data/share/etc/uv/syntax/text.setext.syntax +147 -0
- data/share/etc/uv/syntax/text.subversion-commit.syntax +36 -0
- data/share/etc/uv/syntax/text.tabular.csv.syntax +68 -0
- data/share/etc/uv/syntax/text.tabular.tsv.syntax +50 -0
- data/share/etc/uv/syntax/text.tex.latex.beamer.syntax +41 -0
- data/share/etc/uv/syntax/text.tex.latex.haskell.syntax +24 -0
- data/share/etc/uv/syntax/text.tex.latex.memoir.syntax +64 -0
- data/share/etc/uv/syntax/text.tex.latex.rd.syntax +91 -0
- data/share/etc/uv/syntax/text.tex.latex.sweave.syntax +84 -0
- data/share/etc/uv/syntax/text.tex.latex.syntax +566 -0
- data/share/etc/uv/syntax/text.tex.math.syntax +49 -0
- data/share/etc/uv/syntax/text.tex.syntax +86 -0
- data/share/etc/uv/syntax/text.txt2tags.syntax +79 -0
- data/share/etc/uv/syntax/text.xml.apple-dist.syntax +77 -0
- data/share/etc/uv/syntax/text.xml.strict.syntax +92 -0
- data/share/etc/uv/syntax/text.xml.syntax +180 -0
- data/share/etc/uv/syntax/text.xml.xsl.syntax +60 -0
- data/share/etc/uv/uv.rb +161 -0
- 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
|
+
}));
|