slide_hero 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slide_hero/code.rb +1 -1
- data/lib/slide_hero/grouped_slides.rb +1 -1
- data/lib/slide_hero/list.rb +6 -3
- data/lib/slide_hero/list_point.rb +1 -1
- data/lib/slide_hero/presentation.rb +1 -2
- data/lib/slide_hero/slide.rb +1 -2
- data/lib/slide_hero/version.rb +1 -1
- data/lib/slide_hero/views/ordered_list.html.erb +1 -1
- data/lib/slide_hero/views/unordered_list.html.erb +1 -1
- data/lib/slide_hero.rb +9 -0
- data/slide_hero.gemspec +7 -7
- data/test/slide_hero/list_spec.rb +31 -9
- data/vendor/reveal.js/.gitignore +0 -0
- data/vendor/reveal.js/.travis.yml +0 -0
- data/vendor/reveal.js/Gruntfile.js +12 -7
- data/vendor/reveal.js/LICENSE +0 -0
- data/vendor/reveal.js/README.md +168 -33
- data/vendor/reveal.js/css/print/paper.css +0 -0
- data/vendor/reveal.js/css/print/pdf.css +1 -1
- data/vendor/reveal.js/css/reveal.css +248 -17
- data/vendor/reveal.js/css/reveal.min.css +1 -1
- data/vendor/reveal.js/css/theme/README.md +3 -1
- data/vendor/reveal.js/css/theme/beige.css +7 -1
- data/vendor/reveal.js/css/theme/blood.css +175 -0
- data/vendor/reveal.js/css/theme/default.css +7 -1
- data/vendor/reveal.js/css/theme/moon.css +7 -1
- data/vendor/reveal.js/css/theme/night.css +7 -1
- data/vendor/reveal.js/css/theme/serif.css +7 -1
- data/vendor/reveal.js/css/theme/simple.css +7 -1
- data/vendor/reveal.js/css/theme/sky.css +7 -1
- data/vendor/reveal.js/css/theme/solarized.css +7 -1
- data/vendor/reveal.js/css/theme/source/beige.scss +0 -0
- data/vendor/reveal.js/css/theme/source/blood.scss +91 -0
- data/vendor/reveal.js/css/theme/source/default.scss +0 -0
- data/vendor/reveal.js/css/theme/source/moon.scss +0 -0
- data/vendor/reveal.js/css/theme/source/night.scss +0 -0
- data/vendor/reveal.js/css/theme/source/serif.scss +0 -0
- data/vendor/reveal.js/css/theme/source/simple.scss +0 -0
- data/vendor/reveal.js/css/theme/source/sky.scss +0 -0
- data/vendor/reveal.js/css/theme/source/solarized.scss +0 -0
- data/vendor/reveal.js/css/theme/template/mixins.scss +0 -0
- data/vendor/reveal.js/css/theme/template/settings.scss +0 -0
- data/vendor/reveal.js/css/theme/template/theme.scss +8 -1
- data/vendor/reveal.js/index.html +388 -0
- data/vendor/reveal.js/js/reveal.js +887 -293
- data/vendor/reveal.js/js/reveal.min.js +3 -2
- data/vendor/reveal.js/lib/css/zenburn.css +16 -17
- data/vendor/reveal.js/lib/font/league_gothic-webfont.svg +0 -0
- data/vendor/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
- data/vendor/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
- data/vendor/reveal.js/lib/font/league_gothic_license +0 -0
- data/vendor/reveal.js/lib/js/classList.js +0 -0
- data/vendor/reveal.js/lib/js/head.min.js +0 -0
- data/vendor/reveal.js/lib/js/html5shiv.js +0 -0
- data/vendor/reveal.js/package.json +10 -9
- data/vendor/reveal.js/plugin/highlight/highlight.js +3 -2
- data/vendor/reveal.js/plugin/leap/leap.js +0 -0
- data/vendor/reveal.js/plugin/markdown/example.html +34 -3
- data/vendor/reveal.js/plugin/markdown/example.md +0 -0
- data/vendor/reveal.js/plugin/markdown/markdown.js +373 -201
- data/vendor/reveal.js/plugin/markdown/marked.js +0 -0
- data/vendor/reveal.js/plugin/multiplex/client.js +0 -0
- data/vendor/reveal.js/plugin/multiplex/index.js +0 -0
- data/vendor/reveal.js/plugin/multiplex/master.js +2 -1
- data/vendor/reveal.js/plugin/notes/notes.html +10 -2
- data/vendor/reveal.js/plugin/notes/notes.js +0 -0
- data/vendor/reveal.js/plugin/notes-server/client.js +0 -0
- data/vendor/reveal.js/plugin/notes-server/index.js +0 -0
- data/vendor/reveal.js/plugin/notes-server/notes.html +0 -0
- data/vendor/reveal.js/plugin/postmessage/example.html +0 -0
- data/vendor/reveal.js/plugin/postmessage/postmessage.js +0 -0
- data/vendor/reveal.js/plugin/print-pdf/print-pdf.js +0 -0
- data/vendor/reveal.js/plugin/remotes/remotes.js +4 -4
- data/vendor/reveal.js/plugin/search/search.js +0 -0
- data/vendor/reveal.js/plugin/zoom-js/zoom.js +3 -1
- data/vendor/reveal.js/{examples → test/examples}/assets/image1.png +0 -0
- data/vendor/reveal.js/{examples → test/examples}/assets/image2.png +0 -0
- data/vendor/reveal.js/{examples → test/examples}/barebones.html +2 -3
- data/vendor/reveal.js/{examples → test/examples}/embedded-media.html +4 -4
- data/vendor/reveal.js/{examples → test/examples}/math.html +6 -6
- data/vendor/reveal.js/{examples → test/examples}/slide-backgrounds.html +26 -5
- data/vendor/reveal.js/test/qunit-1.12.0.css +244 -0
- data/vendor/reveal.js/test/qunit-1.12.0.js +2212 -0
- data/vendor/reveal.js/test/test-markdown-element-attributes.html +134 -0
- data/vendor/reveal.js/test/test-markdown-element-attributes.js +46 -0
- data/vendor/reveal.js/test/test-markdown-slide-attributes.html +128 -0
- data/vendor/reveal.js/test/test-markdown-slide-attributes.js +47 -0
- data/vendor/reveal.js/test/test-markdown.html +52 -0
- data/vendor/reveal.js/test/test-markdown.js +15 -0
- data/vendor/reveal.js/test/test.html +81 -0
- data/vendor/reveal.js/test/test.js +438 -0
- metadata +58 -45
@@ -0,0 +1,134 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Test Markdown Element Attributes</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.min.css">
|
10
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="overflow: auto;">
|
14
|
+
|
15
|
+
<div id="qunit"></div>
|
16
|
+
<div id="qunit-fixture"></div>
|
17
|
+
|
18
|
+
<div class="reveal" style="display: none;">
|
19
|
+
|
20
|
+
<div class="slides">
|
21
|
+
|
22
|
+
<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> -->
|
23
|
+
|
24
|
+
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
|
25
|
+
<section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$" data-element-attributes="{_\s*?([^}]+?)}">>
|
26
|
+
<script type="text/template">
|
27
|
+
## Slide 1.1
|
28
|
+
<!-- {_class="fragment fade-out" data-fragment-index="1"} -->
|
29
|
+
|
30
|
+
--
|
31
|
+
|
32
|
+
## Slide 1.2
|
33
|
+
<!-- {_class="fragment shrink"} -->
|
34
|
+
|
35
|
+
Paragraph 1
|
36
|
+
<!-- {_class="fragment grow"} -->
|
37
|
+
|
38
|
+
Paragraph 2
|
39
|
+
<!-- {_class="fragment grow"} -->
|
40
|
+
|
41
|
+
- list item 1 <!-- {_class="fragment roll-in"} -->
|
42
|
+
- list item 2 <!-- {_class="fragment roll-in"} -->
|
43
|
+
- list item 3 <!-- {_class="fragment roll-in"} -->
|
44
|
+
|
45
|
+
|
46
|
+
---
|
47
|
+
|
48
|
+
## Slide 2
|
49
|
+
|
50
|
+
|
51
|
+
Paragraph 1.2
|
52
|
+
multi-line <!-- {_class="fragment highlight-red"} -->
|
53
|
+
|
54
|
+
Paragraph 2.2 <!-- {_class="fragment highlight-red"} -->
|
55
|
+
|
56
|
+
Paragraph 2.3 <!-- {_class="fragment highlight-red"} -->
|
57
|
+
|
58
|
+
Paragraph 2.4 <!-- {_class="fragment highlight-red"} -->
|
59
|
+
|
60
|
+
- list item 1 <!-- {_class="fragment highlight-green"} -->
|
61
|
+
- list item 2<!-- {_class="fragment highlight-green"} -->
|
62
|
+
- list item 3<!-- {_class="fragment highlight-green"} -->
|
63
|
+
- list item 4
|
64
|
+
<!-- {_class="fragment highlight-green"} -->
|
65
|
+
- list item 5<!-- {_class="fragment highlight-green"} -->
|
66
|
+
|
67
|
+
Test
|
68
|
+
|
69
|
+
![Example Picture](examples/assets/image2.png)
|
70
|
+
<!-- {_class="reveal stretch"} -->
|
71
|
+
|
72
|
+
</script>
|
73
|
+
</section>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<section data-markdown data-separator="^\n\n\n"
|
78
|
+
data-vertical="^\n\n"
|
79
|
+
data-notes="^Note:"
|
80
|
+
data-charset="utf-8">
|
81
|
+
<script type="text/template">
|
82
|
+
# Test attributes in Markdown with default separator
|
83
|
+
## Slide 1 Def <!-- .element: class="fragment highlight-red" data-fragment-index="1" -->
|
84
|
+
|
85
|
+
|
86
|
+
## Slide 2 Def
|
87
|
+
<!-- .element: class="fragment highlight-red" -->
|
88
|
+
|
89
|
+
</script>
|
90
|
+
</section>
|
91
|
+
|
92
|
+
<section data-markdown>
|
93
|
+
<script type="text/template">
|
94
|
+
## Hello world
|
95
|
+
A paragraph
|
96
|
+
<!-- .element: class="fragment highlight-blue" -->
|
97
|
+
</script>
|
98
|
+
</section>
|
99
|
+
|
100
|
+
<section data-markdown>
|
101
|
+
<script type="text/template">
|
102
|
+
## Hello world
|
103
|
+
|
104
|
+
Multiple
|
105
|
+
Line
|
106
|
+
<!-- .element: class="fragment highlight-blue" -->
|
107
|
+
</script>
|
108
|
+
</section>
|
109
|
+
|
110
|
+
<section data-markdown>
|
111
|
+
<script type="text/template">
|
112
|
+
## Hello world
|
113
|
+
|
114
|
+
Test<!-- .element: class="fragment highlight-blue" -->
|
115
|
+
|
116
|
+
More Test
|
117
|
+
</script>
|
118
|
+
</section>
|
119
|
+
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<script src="../lib/js/head.min.js"></script>
|
126
|
+
<script src="../js/reveal.min.js"></script>
|
127
|
+
<script src="../plugin/markdown/marked.js"></script>
|
128
|
+
<script src="../plugin/markdown/markdown.js"></script>
|
129
|
+
<script src="qunit-1.12.0.js"></script>
|
130
|
+
|
131
|
+
<script src="test-markdown-element-attributes.js"></script>
|
132
|
+
|
133
|
+
</body>
|
134
|
+
</html>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Reveal.addEventListener( 'ready', function() {
|
4
|
+
|
5
|
+
QUnit.module( 'Markdown' );
|
6
|
+
|
7
|
+
test( 'Vertical separator', function() {
|
8
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 4, 'found four slides' );
|
9
|
+
});
|
10
|
+
|
11
|
+
|
12
|
+
test( 'Attributes on element header in vertical slides', function() {
|
13
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.fade-out' ).length, 1, 'found one vertical slide with class fragment.fade-out on header' );
|
14
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section h2.fragment.shrink' ).length, 1, 'found one vertical slide with class fragment.shrink on header' );
|
15
|
+
});
|
16
|
+
|
17
|
+
test( 'Attributes on element paragraphs in vertical slides', function() {
|
18
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section p.fragment.grow' ).length, 2, 'found a vertical slide with two paragraphs with class fragment.grow' );
|
19
|
+
});
|
20
|
+
|
21
|
+
test( 'Attributes on element list items in vertical slides', function() {
|
22
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section>section li.fragment.roll-in' ).length, 3, 'found a vertical slide with three list items with class fragment.roll-in' );
|
23
|
+
});
|
24
|
+
|
25
|
+
test( 'Attributes on element paragraphs in horizontal slides', function() {
|
26
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-red' ).length, 4, 'found a horizontal slide with four paragraphs with class fragment.grow' );
|
27
|
+
});
|
28
|
+
test( 'Attributes on element list items in horizontal slides', function() {
|
29
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section li.fragment.highlight-green' ).length, 5, 'found a horizontal slide with five list items with class fragment.roll-in' );
|
30
|
+
});
|
31
|
+
test( 'Attributes on element list items in horizontal slides', function() {
|
32
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section img.reveal.stretch' ).length, 1, 'found a horizontal slide with stretched image, class img.reveal.stretch' );
|
33
|
+
});
|
34
|
+
|
35
|
+
test( 'Attributes on elements in vertical slides with default element attribute separator', function() {
|
36
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section h2.fragment.highlight-red' ).length, 2, 'found two h2 titles with fragment highlight-red in vertical slides with default element attribute separator' );
|
37
|
+
});
|
38
|
+
|
39
|
+
test( 'Attributes on elements in single slides with default element attribute separator', function() {
|
40
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section p.fragment.highlight-blue' ).length, 3, 'found three elements with fragment highlight-blue in single slide with default element attribute separator' );
|
41
|
+
});
|
42
|
+
|
43
|
+
} );
|
44
|
+
|
45
|
+
Reveal.initialize();
|
46
|
+
|
@@ -0,0 +1,128 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Test Markdown Attributes</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.min.css">
|
10
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="overflow: auto;">
|
14
|
+
|
15
|
+
<div id="qunit"></div>
|
16
|
+
<div id="qunit-fixture"></div>
|
17
|
+
|
18
|
+
<div class="reveal" style="display: none;">
|
19
|
+
|
20
|
+
<div class="slides">
|
21
|
+
|
22
|
+
<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> -->
|
23
|
+
|
24
|
+
<!-- Slides are separated by three lines, vertical slides by two lines, attributes are one any line starting with (spaces and) two dashes -->
|
25
|
+
<section data-markdown data-separator="^\n\n\n"
|
26
|
+
data-vertical="^\n\n"
|
27
|
+
data-notes="^Note:"
|
28
|
+
data-attributes="--\s(.*?)$"
|
29
|
+
data-charset="utf-8">
|
30
|
+
<script type="text/template">
|
31
|
+
# Test attributes in Markdown
|
32
|
+
## Slide 1
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
## Slide 2
|
37
|
+
<!-- -- id="slide2" data-transition="zoom" data-background="#A0C66B" -->
|
38
|
+
|
39
|
+
|
40
|
+
## Slide 2.1
|
41
|
+
<!-- -- data-background="#ff0000" data-transition="fade" -->
|
42
|
+
|
43
|
+
|
44
|
+
## Slide 2.2
|
45
|
+
[Link to Slide2](#/slide2)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
## Slide 3
|
50
|
+
<!-- -- data-transition="zoom" data-background="#C6916B" -->
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
## Slide 4
|
55
|
+
</script>
|
56
|
+
</section>
|
57
|
+
|
58
|
+
<section data-markdown data-separator="^\n\n\n"
|
59
|
+
data-vertical="^\n\n"
|
60
|
+
data-notes="^Note:"
|
61
|
+
data-charset="utf-8">
|
62
|
+
<script type="text/template">
|
63
|
+
# Test attributes in Markdown with default separator
|
64
|
+
## Slide 1 Def
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
## Slide 2 Def
|
69
|
+
<!-- .slide: id="slide2def" data-transition="concave" data-background="#A7C66B" -->
|
70
|
+
|
71
|
+
|
72
|
+
## Slide 2.1 Def
|
73
|
+
<!-- .slide: data-background="#f70000" data-transition="page" -->
|
74
|
+
|
75
|
+
|
76
|
+
## Slide 2.2 Def
|
77
|
+
[Link to Slide2](#/slide2def)
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
## Slide 3 Def
|
82
|
+
<!-- .slide: data-transition="concave" data-background="#C7916B" -->
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
## Slide 4
|
87
|
+
</script>
|
88
|
+
</section>
|
89
|
+
|
90
|
+
<section data-markdown>
|
91
|
+
<script type="text/template">
|
92
|
+
<!-- .slide: data-background="#ff0000" -->
|
93
|
+
## Hello world
|
94
|
+
</script>
|
95
|
+
</section>
|
96
|
+
|
97
|
+
<section data-markdown>
|
98
|
+
<script type="text/template">
|
99
|
+
## Hello world
|
100
|
+
<!-- .slide: data-background="#ff0000" -->
|
101
|
+
</script>
|
102
|
+
</section>
|
103
|
+
|
104
|
+
<section data-markdown>
|
105
|
+
<script type="text/template">
|
106
|
+
## Hello world
|
107
|
+
|
108
|
+
Test
|
109
|
+
<!-- .slide: data-background="#ff0000" -->
|
110
|
+
|
111
|
+
More Test
|
112
|
+
</script>
|
113
|
+
</section>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
<script src="../lib/js/head.min.js"></script>
|
120
|
+
<script src="../js/reveal.min.js"></script>
|
121
|
+
<script src="../plugin/markdown/marked.js"></script>
|
122
|
+
<script src="../plugin/markdown/markdown.js"></script>
|
123
|
+
<script src="qunit-1.12.0.js"></script>
|
124
|
+
|
125
|
+
<script src="test-markdown-slide-attributes.js"></script>
|
126
|
+
|
127
|
+
</body>
|
128
|
+
</html>
|
@@ -0,0 +1,47 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Reveal.addEventListener( 'ready', function() {
|
4
|
+
|
5
|
+
QUnit.module( 'Markdown' );
|
6
|
+
|
7
|
+
test( 'Vertical separator', function() {
|
8
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 6, 'found six vertical slides' );
|
9
|
+
});
|
10
|
+
|
11
|
+
test( 'Id on slide', function() {
|
12
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section#slide2' ).length, 1, 'found one slide with id slide2' );
|
13
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section a[href="#/slide2"]' ).length, 1, 'found one slide with a link to slide2' );
|
14
|
+
});
|
15
|
+
|
16
|
+
test( 'data-background attributes', function() {
|
17
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A0C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' );
|
18
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#ff0000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' );
|
19
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C6916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' );
|
20
|
+
});
|
21
|
+
|
22
|
+
test( 'data-transition attributes', function() {
|
23
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="zoom"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' );
|
24
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="fade"]' ).length, 1, 'found one vertical slide with data-transition="fade"' );
|
25
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="zoom"]' ).length, 1, 'found one slide with data-transition="zoom"' );
|
26
|
+
});
|
27
|
+
|
28
|
+
test( 'data-background attributes with default separator', function() {
|
29
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#A7C66B"]' ).length, 1, 'found one vertical slide with data-background="#A0C66B"' );
|
30
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-background="#f70000"]' ).length, 1, 'found one vertical slide with data-background="#ff0000"' );
|
31
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#C7916B"]' ).length, 1, 'found one slide with data-background="#C6916B"' );
|
32
|
+
});
|
33
|
+
|
34
|
+
test( 'data-transition attributes with default separator', function() {
|
35
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="concave"]' ).length, 1, 'found one vertical slide with data-transition="zoom"' );
|
36
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section[data-transition="page"]' ).length, 1, 'found one vertical slide with data-transition="fade"' );
|
37
|
+
strictEqual( document.querySelectorAll( '.reveal .slides section [data-transition="concave"]' ).length, 1, 'found one slide with data-transition="zoom"' );
|
38
|
+
});
|
39
|
+
|
40
|
+
test( 'data-transition attributes with inline content', function() {
|
41
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section[data-background="#ff0000"]' ).length, 3, 'found three horizontal slides with data-background="#ff0000"' );
|
42
|
+
});
|
43
|
+
|
44
|
+
} );
|
45
|
+
|
46
|
+
Reveal.initialize();
|
47
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Test Markdown</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.min.css">
|
10
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="overflow: auto;">
|
14
|
+
|
15
|
+
<div id="qunit"></div>
|
16
|
+
<div id="qunit-fixture"></div>
|
17
|
+
|
18
|
+
<div class="reveal" style="display: none;">
|
19
|
+
|
20
|
+
<div class="slides">
|
21
|
+
|
22
|
+
<!-- <section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section> -->
|
23
|
+
|
24
|
+
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
|
25
|
+
<section data-markdown data-separator="^\n---\n$" data-vertical="^\n--\n$">
|
26
|
+
<script type="text/template">
|
27
|
+
## Slide 1.1
|
28
|
+
|
29
|
+
--
|
30
|
+
|
31
|
+
## Slide 1.2
|
32
|
+
|
33
|
+
---
|
34
|
+
|
35
|
+
## Slide 2
|
36
|
+
</script>
|
37
|
+
</section>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<script src="../lib/js/head.min.js"></script>
|
44
|
+
<script src="../js/reveal.min.js"></script>
|
45
|
+
<script src="../plugin/markdown/marked.js"></script>
|
46
|
+
<script src="../plugin/markdown/markdown.js"></script>
|
47
|
+
<script src="qunit-1.12.0.js"></script>
|
48
|
+
|
49
|
+
<script src="test-markdown.js"></script>
|
50
|
+
|
51
|
+
</body>
|
52
|
+
</html>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Reveal.addEventListener( 'ready', function() {
|
4
|
+
|
5
|
+
QUnit.module( 'Markdown' );
|
6
|
+
|
7
|
+
test( 'Vertical separator', function() {
|
8
|
+
strictEqual( document.querySelectorAll( '.reveal .slides>section>section' ).length, 2, 'found two slides' );
|
9
|
+
});
|
10
|
+
|
11
|
+
|
12
|
+
} );
|
13
|
+
|
14
|
+
Reveal.initialize();
|
15
|
+
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
|
7
|
+
<title>reveal.js - Tests</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="../css/reveal.min.css">
|
10
|
+
<link rel="stylesheet" href="qunit-1.12.0.css">
|
11
|
+
</head>
|
12
|
+
|
13
|
+
<body style="overflow: auto;">
|
14
|
+
|
15
|
+
<div id="qunit"></div>
|
16
|
+
<div id="qunit-fixture"></div>
|
17
|
+
|
18
|
+
<div class="reveal" style="display: none;">
|
19
|
+
|
20
|
+
<div class="slides">
|
21
|
+
|
22
|
+
<section>
|
23
|
+
<h1>1</h1>
|
24
|
+
</section>
|
25
|
+
|
26
|
+
<section>
|
27
|
+
<section>
|
28
|
+
<h1>2.1</h1>
|
29
|
+
</section>
|
30
|
+
<section>
|
31
|
+
<h1>2.2</h1>
|
32
|
+
</section>
|
33
|
+
<section>
|
34
|
+
<h1>2.3</h1>
|
35
|
+
</section>
|
36
|
+
</section>
|
37
|
+
|
38
|
+
<section id="fragment-slides">
|
39
|
+
<section>
|
40
|
+
<h1>3.1</h1>
|
41
|
+
<ul>
|
42
|
+
<li class="fragment">4.1</li>
|
43
|
+
<li class="fragment">4.2</li>
|
44
|
+
<li class="fragment">4.3</li>
|
45
|
+
</ul>
|
46
|
+
</section>
|
47
|
+
|
48
|
+
<section>
|
49
|
+
<h1>3.2</h1>
|
50
|
+
<ul>
|
51
|
+
<li class="fragment" data-fragment-index="0">4.1</li>
|
52
|
+
<li class="fragment" data-fragment-index="0">4.2</li>
|
53
|
+
</ul>
|
54
|
+
</section>
|
55
|
+
|
56
|
+
<section>
|
57
|
+
<h1>3.3</h1>
|
58
|
+
<ul>
|
59
|
+
<li class="fragment" data-fragment-index="1">3.3.1</li>
|
60
|
+
<li class="fragment" data-fragment-index="4">3.3.2</li>
|
61
|
+
<li class="fragment" data-fragment-index="4">3.3.3</li>
|
62
|
+
</ul>
|
63
|
+
</section>
|
64
|
+
</section>
|
65
|
+
|
66
|
+
<section>
|
67
|
+
<h1>4</h1>
|
68
|
+
</section>
|
69
|
+
|
70
|
+
</div>
|
71
|
+
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<script src="../lib/js/head.min.js"></script>
|
75
|
+
<script src="../js/reveal.min.js"></script>
|
76
|
+
<script src="qunit-1.12.0.js"></script>
|
77
|
+
|
78
|
+
<script src="test.js"></script>
|
79
|
+
|
80
|
+
</body>
|
81
|
+
</html>
|