dyndoc-ruby 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +2 -212
- data/share/etc/pandoc/README.INSTALL +0 -1
- data/share/etc/pandoc/config.rb +0 -4
- data/share/etc/pandoc/extra/reveal.js-3.0.0/CONTRIBUTING.md +0 -19
- data/share/etc/pandoc/extra/reveal.js-3.0.0/Gruntfile.js +0 -174
- data/share/etc/pandoc/extra/reveal.js-3.0.0/LICENSE +0 -19
- data/share/etc/pandoc/extra/reveal.js-3.0.0/README.md +0 -950
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/paper.css +0 -202
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/pdf.css +0 -157
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.css +0 -1141
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.min.css +0 -1141
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.scss +0 -1316
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/README.md +0 -25
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/beige.css +0 -265
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/black.css +0 -261
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/blood.css +0 -291
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/default.css +0 -268
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/league.css +0 -267
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/moon.css +0 -265
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/night.css +0 -259
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/serif.css +0 -261
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/simple.css +0 -261
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/sky.css +0 -268
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/solarized.css +0 -265
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/beige.scss +0 -39
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/black.scss +0 -49
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/blood.scss +0 -91
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/league.scss +0 -34
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/moon.scss +0 -57
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/night.scss +0 -35
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/serif.scss +0 -35
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/simple.scss +0 -38
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/sky.scss +0 -46
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/solarized.scss +0 -63
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/white.scss +0 -49
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/mixins.scss +0 -29
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/settings.scss +0 -43
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/theme.scss +0 -339
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/white.css +0 -261
- data/share/etc/pandoc/extra/reveal.js-3.0.0/index.html +0 -408
- data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.js +0 -4276
- data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.min.js +0 -4276
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/css/zenburn.css +0 -117
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/LICENSE +0 -2
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.css +0 -10
- 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 +0 -45
- 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 +0 -39
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/classList.js +0 -2
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/head.min.js +0 -8
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/html5shiv.js +0 -7
- data/share/etc/pandoc/extra/reveal.js-3.0.0/package.json +0 -48
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/highlight/highlight.js +0 -30
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/leap/leap.js +0 -159
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.html +0 -129
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.md +0 -31
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/markdown.js +0 -393
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/marked.js +0 -37
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/math/math.js +0 -64
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/client.js +0 -13
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/index.js +0 -56
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/master.js +0 -51
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/client.js +0 -60
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/index.js +0 -66
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/notes.html +0 -396
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.html +0 -406
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.js +0 -122
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/print-pdf/print-pdf.js +0 -48
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/remotes/remotes.js +0 -39
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/search/search.js +0 -196
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/zoom-js/zoom.js +0 -278
- 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 +0 -41
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/embedded-media.html +0 -49
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/math.html +0 -185
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/slide-backgrounds.html +0 -144
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.css +0 -244
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.js +0 -2212
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.html +0 -134
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.js +0 -46
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.html +0 -128
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.js +0 -47
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.html +0 -52
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.js +0 -15
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.html +0 -83
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.js +0 -15
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.html +0 -82
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.js +0 -572
- data/share/etc/pandoc/extra/reveal.js-3.1.0/CONTRIBUTING.md +0 -23
- data/share/etc/pandoc/extra/reveal.js-3.1.0/Gruntfile.js +0 -170
- data/share/etc/pandoc/extra/reveal.js-3.1.0/LICENSE +0 -19
- data/share/etc/pandoc/extra/reveal.js-3.1.0/README.md +0 -1050
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/paper.css +0 -202
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/pdf.css +0 -157
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.css +0 -1175
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.scss +0 -1319
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/README.md +0 -23
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/beige.css +0 -271
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/black.css +0 -267
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/blood.css +0 -285
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/league.css +0 -273
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/moon.css +0 -271
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/night.css +0 -265
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/serif.css +0 -267
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/simple.css +0 -267
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/sky.css +0 -274
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/solarized.css +0 -271
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/beige.scss +0 -39
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/black.scss +0 -49
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/blood.scss +0 -79
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/league.scss +0 -34
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/moon.scss +0 -57
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/night.scss +0 -35
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/serif.scss +0 -35
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/simple.scss +0 -38
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/sky.scss +0 -46
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/solarized.scss +0 -63
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/white.scss +0 -49
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/mixins.scss +0 -29
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/settings.scss +0 -43
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/theme.scss +0 -349
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/white.css +0 -267
- data/share/etc/pandoc/extra/reveal.js-3.1.0/index.html +0 -411
- data/share/etc/pandoc/extra/reveal.js-3.1.0/js/reveal.js +0 -4508
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/css/zenburn.css +0 -117
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/LICENSE +0 -2
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.css +0 -10
- 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 +0 -45
- 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 +0 -39
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/classList.js +0 -2
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/head.min.js +0 -8
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/html5shiv.js +0 -7
- data/share/etc/pandoc/extra/reveal.js-3.1.0/package.json +0 -49
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/highlight/highlight.js +0 -30
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/leap/leap.js +0 -159
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.html +0 -129
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.md +0 -31
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/markdown.js +0 -393
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/marked.js +0 -6
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/math/math.js +0 -64
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/client.js +0 -13
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/index.js +0 -56
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/master.js +0 -51
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/client.js +0 -60
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/index.js +0 -66
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/notes.html +0 -396
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.html +0 -406
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.js +0 -122
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/print-pdf/print-pdf.js +0 -48
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/remotes/remotes.js +0 -39
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/search/search.js +0 -196
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/zoom-js/zoom.js +0 -278
- 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 +0 -41
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/embedded-media.html +0 -49
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/math.html +0 -185
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-backgrounds.html +0 -144
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-transitions.html +0 -101
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.css +0 -244
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.js +0 -2212
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.html +0 -134
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.js +0 -46
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.html +0 -128
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.js +0 -47
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.html +0 -52
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.js +0 -15
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.html +0 -83
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.js +0 -15
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.html +0 -85
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.js +0 -589
- 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 +0 -23
- data/share/etc/pandoc/extra/s5-ui/default/iepngfix.htc +0 -42
- data/share/etc/pandoc/extra/s5-ui/default/opera.css +0 -7
- data/share/etc/pandoc/extra/s5-ui/default/outline.css +0 -15
- data/share/etc/pandoc/extra/s5-ui/default/pretty.css +0 -86
- data/share/etc/pandoc/extra/s5-ui/default/print.css +0 -1
- data/share/etc/pandoc/extra/s5-ui/default/s5-core.css +0 -9
- data/share/etc/pandoc/extra/s5-ui/default/slides.css +0 -3
- data/share/etc/pandoc/extra/s5-ui/default/slides.js +0 -553
@@ -1,129 +0,0 @@
|
|
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/default.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>
|
@@ -1,31 +0,0 @@
|
|
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
|
@@ -1,393 +0,0 @@
|
|
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 = '^\n---\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 + '}'), '\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
|
-
}));
|