asciidoctor-revealjs 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92c4880c5ceb7627a9f3aecb18cdc51e2decb5aeda93ae43acc0f2dba469c166
4
- data.tar.gz: bf5d778618042ed402c2ae33c3de5c1601c47534db1ef126123a2781b9d51c3a
3
+ metadata.gz: 5c859d03df98f52ebbcc3e1f379a41c6103e6140a94b253732a8cf5689e098e4
4
+ data.tar.gz: 2558438a7589d665bd25aae3f49d9b99ca1241a2ff390508380a3a4abe38787a
5
5
  SHA512:
6
- metadata.gz: 47aebfa9caca7b8ae9d623652f49cbee2b9dafdd9dbaf3dbb8ab4c09fce5fd8564660b5c16bf013a4cd8085e711087a27986929ce80b3444518ba4c492031d64
7
- data.tar.gz: 03506ef9bc2d53d22f8a80ff924e561d32cb2b86634a5f6e892ffb9f15d2d8dbc6388b76e7492fc740f23c8376d8a8eae5a4a7db187394919655a974b37ebd2d
6
+ metadata.gz: ca517e99129e78868555c180e9464e4d4953a434499cde9c46a018ab17dfbba440bc619282e7e9e4e98270f61b4b93897910e8ca2fa060ab5ee2cdd380d2cef5
7
+ data.tar.gz: c3f53bfe969e5774ab0947d8db41477d6af5e22217fce08d760bf5c0d70b366663c31cc1543cefd584cd73fbb5e7991f995d7b0237cfd23d835dfb68e502493c
@@ -6,6 +6,38 @@
6
6
  This document provides a high-level view of the changes introduced in {project-name} by release.
7
7
  For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
8
8
 
9
+
10
+ == 2.0.1 (2019-12-04)
11
+
12
+ Important Bug Fix::
13
+ * Fixed an issue that caused all `reveal.js` options in CamelCase to use the default value instead of one specified as an AsciiDoc attribute ({uri-issue}263[#263], {uri-issue}267[#267])
14
+
15
+ Compliance::
16
+ * Dropped support for verse table cells ({uri-issue}246[#246]).
17
+ Asciidoctor 2.0 dropped it, we followed.
18
+
19
+ Enhancements::
20
+ * Documentation improvements ({uri-issue}264[#264], {uri-issue}278[#278], {uri-issue}280[#280])
21
+
22
+ Bug Fixes::
23
+ * Yarn.lock updates for security ({uri-issue}283[#283])
24
+
25
+ === Release meta
26
+
27
+ * Released on: 2019-12-04
28
+ * Released by: Olivier Bilodeau
29
+ * Release whisky: Lot No. 40 Single Copper Pot Still Rye Whisky
30
+
31
+ {uri-repo}/releases/tag/v2.0.1[git tag] |
32
+ {uri-repo}/compare/v2.0.0...v2.0.1[full diff]
33
+
34
+ === Credits
35
+
36
+ Thanks to the following people who contributed to this release:
37
+
38
+ Benjamin Schmid, Guillaume Grossetie, Olivier Bilodeau
39
+
40
+
9
41
  == 2.0.0 (2019-02-28)
10
42
 
11
43
  Upgrade considerations::
@@ -48,7 +80,7 @@ Enhancements::
48
80
 
49
81
  Compliance::
50
82
  * AsciiDoc source callout icons now work ({uri-issue}54[#54], {uri-issue}168[#168], {uri-issue}224[#224])
51
- * New reveal.js 3.7.0 features supported: `controlsTutorial`, `controlsLayout`, `controlsBackArrows`, new `slideNumber` formats, `showSlideNumber`, `autoSlideMethod`, `parallaxBackgroundHorizontal`, `parallaxBackgroundVertical` and `display` configuration parameters are now supported ({uri-issue}212[#212], {uri-issue}239[#239], TODO)
83
+ * New reveal.js 3.7.0 features supported: `controlsTutorial`, `controlsLayout`, `controlsBackArrows`, new `slideNumber` formats, `showSlideNumber`, `autoSlideMethod`, `parallaxBackgroundHorizontal`, `parallaxBackgroundVertical` and `display` configuration parameters are now supported ({uri-issue}212[#212], {uri-issue}239[#239], {uri-issue}208[#208], {uri-issue}242[#242])
52
84
  * Asciidoctor 2.0 ready ({uri-issue}245[#245])
53
85
 
54
86
  Bug Fixes::
@@ -63,9 +95,9 @@ Infrastructure::
63
95
 
64
96
  === Release meta
65
97
 
66
- * Released on: 2018-02-28
98
+ * Released on: 2019-02-28
67
99
  * Released by: Olivier Bilodeau
68
- * Release beer: President's Choice Blonde Brew De-alcoholized Beer
100
+ * Release beer: President's Choice Blonde Brew De-alcoholized Beer (Sober February Successfully Completed!)
69
101
 
70
102
  {uri-repo}/releases/tag/v2.0.0[git tag] |
71
103
  {uri-repo}/compare/v1.1.3...v2.0.0[full diff] |
@@ -286,6 +286,8 @@ Then run:
286
286
  ** Annotated Tag msg: Version %version%
287
287
  . Push your changes (including the tag)
288
288
  . Make a release on github (from changelog and copy from previous releases)
289
+ // TODO: reg needs fixin'
290
+ ** Useful vim regex for AsciiDoc to Markdown: `:%s/{uri-issue}\d\+\(\(\[#\d\+\)]\)/\1(https:\/\/github.com\/asciidoctor\/asciidoctor-reveal.js\/issues\/\2)/gc`
289
291
  . Pushing the gem on rubygems.org:
290
292
  +
291
293
  $ bundle exec rake build
@@ -42,7 +42,9 @@ Right now the Asciidoctor / Ruby stack is the better tested one but with the cha
42
42
  ifeval::['{branch}' == 'master']
43
43
  NOTE: You're viewing the documentation for an upcoming release.
44
44
  If you're looking for the documentation for the current release or an older one, please click on the appropriate link below: +
45
- {uri-project-repo}/tree/v1.1.3#readme[1.1.3] (latest release)
45
+ {uri-project-repo}/tree/v2.0.0#readme[2.0.0] (latest release)
46
+ ⁃
47
+ {uri-project-repo}/tree/v1.1.3#readme[1.1.3] (latest from 1.1 series)
46
48
  ⁃
47
49
  {uri-project-repo}/tree/maint-1.0.x#readme[1.0.x]
48
50
  ⁃
@@ -674,7 +676,9 @@ Here are details about Asciidoctor's http://asciidoctor.org/docs/user-manual/#ad
674
676
 
675
677
  == Reveal.js Options
676
678
 
677
- There are some attributes that can be set at the top of the document which they are specific of `revealjs` converter.
679
+ Some attributes can be set at the top of the document that are specific to the `reveal.js` converter.
680
+ They use the same name as in the `reveal.js` project except that they are prepended by `revealjs_` and case doesn't matter.
681
+ They are applied in the link:templates/document.html.slim[document template].
678
682
 
679
683
  NOTE: Default settings are based on `reveal.js` default settings.
680
684
 
@@ -875,6 +879,20 @@ a|Number of pixels to move the parallax background per slide
875
879
  |<a valid CSS display mode>
876
880
  |The display mode that will be used to show slides.
877
881
  Defaults to *block*
882
+
883
+ |:revealjs_width:
884
+ |<pixels\|percentage unit>
885
+ | Independent from the values, the aspect ratio will be preserved
886
+ when scaled to fit different resolutions. Defaults to *960*
887
+
888
+ |:revealjs_height:
889
+ |<pixels\|percentage unit>
890
+ | See `:revealjs_width:`. Defaults to *700*
891
+
892
+ |:revealjs_margin:
893
+ |<percentage value>
894
+ | Factor of the display size that should remain empty around the content. Defaults to *0.1*
895
+
878
896
  |===
879
897
 
880
898
  If you want to build a custom theme or customize an existing one you should
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.extra_rdoc_files = Dir['README.adoc', 'LICENSE.adoc', 'HACKING.adoc']
30
30
  s.require_paths = ['lib']
31
31
 
32
- s.add_runtime_dependency 'asciidoctor', ['>= 1.5.6', '< 2.1']
32
+ s.add_runtime_dependency 'asciidoctor', ['>= 1.5.6', '< 3.0.0']
33
33
  s.add_runtime_dependency 'thread_safe', '~> 0.3.5'
34
34
  s.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
35
35
 
@@ -42,3 +42,8 @@
42
42
  == hello こんにちは
43
43
 
44
44
  == hello 你好
45
+
46
+ [id=xss" onClick="javascript:alert('xss-ed')]
47
+ == hello XSS
48
+
49
+ security?
@@ -491,7 +491,7 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
491
491
  ; cell_content = cell.text;
492
492
  ; else;
493
493
  ; case cell.style;
494
- ; when :verse, :literal;
494
+ ; when :literal;
495
495
  ; cell_content = cell.text;
496
496
  ; else;
497
497
  ; cell_content = cell.content;
@@ -505,8 +505,6 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
505
505
  ; case cell.style;
506
506
  ; when :asciidoc;
507
507
  ; _slim_controls2 << ("<div>".freeze); _slim_controls2 << ((cell_content).to_s);
508
- ; _slim_controls2 << ("</div>".freeze); when :verse;
509
- ; _slim_controls2 << ("<div class=\"verse\">".freeze); _slim_controls2 << ((cell_content).to_s);
510
508
  ; _slim_controls2 << ("</div>".freeze); when :literal;
511
509
  ; _slim_controls2 << ("<div class=\"literal\"><pre>".freeze); _slim_controls2 << ((cell_content).to_s);
512
510
  ; _slim_controls2 << ("</pre></div>".freeze); when :header;
@@ -669,12 +667,12 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
669
667
  ; _buf << ((to_boolean(attr 'revealjs_controls', true)).to_s); _buf << (",\n // Help the user learn the controls by providing hints, for example by\n // bouncing the down arrow when they first encounter a vertical slide\n controlsTutorial: ".freeze);
670
668
  ;
671
669
  ;
672
- ; _buf << ((to_boolean(attr 'revealjs_controlsTutorial', true)).to_s); _buf << (",\n // Determines where controls appear, \"edges\" or \"bottom-right\"\n controlsLayout: '".freeze);
670
+ ; _buf << ((to_boolean(attr 'revealjs_controlstutorial', true)).to_s); _buf << (",\n // Determines where controls appear, \"edges\" or \"bottom-right\"\n controlsLayout: '".freeze);
673
671
  ;
674
- ; _buf << ((attr 'revealjs_controlsLayout', 'bottom-right').to_s); _buf << ("',\n // Visibility rule for backwards navigation arrows; \"faded\", \"hidden\"\n // or \"visible\"\n controlsBackArrows: '".freeze);
672
+ ; _buf << ((attr 'revealjs_controlslayout', 'bottom-right').to_s); _buf << ("',\n // Visibility rule for backwards navigation arrows; \"faded\", \"hidden\"\n // or \"visible\"\n controlsBackArrows: '".freeze);
675
673
  ;
676
674
  ;
677
- ; _buf << ((attr 'revealjs_controlsBackArrows', 'faded').to_s); _buf << ("',\n // Display a presentation progress bar\n progress: ".freeze);
675
+ ; _buf << ((attr 'revealjs_controlsbackarrows', 'faded').to_s); _buf << ("',\n // Display a presentation progress bar\n progress: ".freeze);
678
676
  ;
679
677
  ; _buf << ((to_boolean(attr 'revealjs_progress', true)).to_s); _buf << (",\n // Display the page number of the current slide\n slideNumber: ".freeze);
680
678
  ;
@@ -701,7 +699,7 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
701
699
  ; _buf << ((to_boolean(attr 'revealjs_fragments', true)).to_s); _buf << (",\n // Flags whether to include the current fragment in the URL,\n // so that reloading brings you to the same fragment position\n fragmentInURL: ".freeze);
702
700
  ;
703
701
  ;
704
- ; _buf << ((to_boolean(attr 'revealjs_fragmentInURL', false)).to_s); _buf << (",\n // Flags if the presentation is running in an embedded mode,\n // i.e. contained within a limited portion of the screen\n embedded: ".freeze);
702
+ ; _buf << ((to_boolean(attr 'revealjs_fragmentinurl', false)).to_s); _buf << (",\n // Flags if the presentation is running in an embedded mode,\n // i.e. contained within a limited portion of the screen\n embedded: ".freeze);
705
703
  ;
706
704
  ;
707
705
  ; _buf << ((to_boolean(attr 'revealjs_embedded', false)).to_s); _buf << (",\n // Flags if we should show a help overlay when the questionmark\n // key is pressed\n help: ".freeze);
@@ -709,49 +707,49 @@ class Asciidoctor::Revealjs::Converter < ::Asciidoctor::Converter::Base
709
707
  ;
710
708
  ; _buf << ((to_boolean(attr 'revealjs_help', true)).to_s); _buf << (",\n // Flags if speaker notes should be visible to all viewers\n showNotes: ".freeze);
711
709
  ;
712
- ; _buf << ((to_boolean(attr 'revealjs_showNotes', false)).to_s); _buf << (",\n // Global override for autolaying embedded media (video/audio/iframe)\n // - null: Media will only autoplay if data-autoplay is present\n // - true: All media will autoplay, regardless of individual setting\n // - false: No media will autoplay, regardless of individual setting\n autoPlayMedia: ".freeze);
710
+ ; _buf << ((to_boolean(attr 'revealjs_shownotes', false)).to_s); _buf << (",\n // Global override for autolaying embedded media (video/audio/iframe)\n // - null: Media will only autoplay if data-autoplay is present\n // - true: All media will autoplay, regardless of individual setting\n // - false: No media will autoplay, regardless of individual setting\n autoPlayMedia: ".freeze);
713
711
  ;
714
712
  ;
715
713
  ;
716
714
  ;
717
- ; _buf << ((attr 'revealjs_autoPlayMedia', 'null').to_s); _buf << (",\n // Number of milliseconds between automatically proceeding to the\n // next slide, disabled when set to 0, this value can be overwritten\n // by using a data-autoslide attribute on your slides\n autoSlide: ".freeze);
715
+ ; _buf << ((attr 'revealjs_autoplaymedia', 'null').to_s); _buf << (",\n // Number of milliseconds between automatically proceeding to the\n // next slide, disabled when set to 0, this value can be overwritten\n // by using a data-autoslide attribute on your slides\n autoSlide: ".freeze);
718
716
  ;
719
717
  ;
720
718
  ;
721
- ; _buf << ((attr 'revealjs_autoSlide', 0).to_s); _buf << (",\n // Stop auto-sliding after user input\n autoSlideStoppable: ".freeze);
719
+ ; _buf << ((attr 'revealjs_autoslide', 0).to_s); _buf << (",\n // Stop auto-sliding after user input\n autoSlideStoppable: ".freeze);
722
720
  ;
723
- ; _buf << ((to_boolean(attr 'revealjs_autoSlideStoppable', true)).to_s); _buf << (",\n // Use this method for navigation when auto-sliding\n autoSlideMethod: ".freeze);
721
+ ; _buf << ((to_boolean(attr 'revealjs_autoslidestoppable', true)).to_s); _buf << (",\n // Use this method for navigation when auto-sliding\n autoSlideMethod: ".freeze);
724
722
  ;
725
- ; _buf << ((attr 'revealjs_autoSlideMethod', 'Reveal.navigateNext').to_s); _buf << (",\n // Specify the average time in seconds that you think you will spend\n // presenting each slide. This is used to show a pacing timer in the\n // speaker view\n defaultTiming: ".freeze);
723
+ ; _buf << ((attr 'revealjs_autoslidemethod', 'Reveal.navigateNext').to_s); _buf << (",\n // Specify the average time in seconds that you think you will spend\n // presenting each slide. This is used to show a pacing timer in the\n // speaker view\n defaultTiming: ".freeze);
726
724
  ;
727
725
  ;
728
726
  ;
729
- ; _buf << ((attr 'revealjs_defaultTiming', 120).to_s); _buf << (",\n // Enable slide navigation via mouse wheel\n mouseWheel: ".freeze);
727
+ ; _buf << ((attr 'revealjs_defaulttiming', 120).to_s); _buf << (",\n // Enable slide navigation via mouse wheel\n mouseWheel: ".freeze);
730
728
  ;
731
- ; _buf << ((to_boolean(attr 'revealjs_mouseWheel', false)).to_s); _buf << (",\n // Hides the address bar on mobile devices\n hideAddressBar: ".freeze);
729
+ ; _buf << ((to_boolean(attr 'revealjs_mousewheel', false)).to_s); _buf << (",\n // Hides the address bar on mobile devices\n hideAddressBar: ".freeze);
732
730
  ;
733
- ; _buf << ((to_boolean(attr 'revealjs_hideAddressBar', true)).to_s); _buf << (",\n // Opens links in an iframe preview overlay\n // Add `data-preview-link` and `data-preview-link=\"false\"` to customise each link\n // individually\n previewLinks: ".freeze);
731
+ ; _buf << ((to_boolean(attr 'revealjs_hideaddressbar', true)).to_s); _buf << (",\n // Opens links in an iframe preview overlay\n // Add `data-preview-link` and `data-preview-link=\"false\"` to customise each link\n // individually\n previewLinks: ".freeze);
734
732
  ;
735
733
  ;
736
734
  ;
737
- ; _buf << ((to_boolean(attr 'revealjs_previewLinks', false)).to_s); _buf << (",\n // Transition style (e.g., none, fade, slide, convex, concave, zoom)\n transition: '".freeze);
735
+ ; _buf << ((to_boolean(attr 'revealjs_previewlinks', false)).to_s); _buf << (",\n // Transition style (e.g., none, fade, slide, convex, concave, zoom)\n transition: '".freeze);
738
736
  ;
739
737
  ; _buf << ((attr 'revealjs_transition', 'slide').to_s); _buf << ("',\n // Transition speed (e.g., default, fast, slow)\n transitionSpeed: '".freeze);
740
738
  ;
741
- ; _buf << ((attr 'revealjs_transitionSpeed', 'default').to_s); _buf << ("',\n // Transition style for full page slide backgrounds (e.g., none, fade, slide, convex, concave, zoom)\n backgroundTransition: '".freeze);
739
+ ; _buf << ((attr 'revealjs_transitionspeed', 'default').to_s); _buf << ("',\n // Transition style for full page slide backgrounds (e.g., none, fade, slide, convex, concave, zoom)\n backgroundTransition: '".freeze);
742
740
  ;
743
- ; _buf << ((attr 'revealjs_backgroundTransition', 'fade').to_s); _buf << ("',\n // Number of slides away from the current that are visible\n viewDistance: ".freeze);
741
+ ; _buf << ((attr 'revealjs_backgroundtransition', 'fade').to_s); _buf << ("',\n // Number of slides away from the current that are visible\n viewDistance: ".freeze);
744
742
  ;
745
- ; _buf << ((attr 'revealjs_viewDistance', 3).to_s); _buf << (",\n // Parallax background image (e.g., \"'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'\")\n parallaxBackgroundImage: '".freeze);
743
+ ; _buf << ((attr 'revealjs_viewdistance', 3).to_s); _buf << (",\n // Parallax background image (e.g., \"'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'\")\n parallaxBackgroundImage: '".freeze);
746
744
  ;
747
- ; _buf << ((attr 'revealjs_parallaxBackgroundImage', '').to_s); _buf << ("',\n // Parallax background size in CSS syntax (e.g., \"2100px 900px\")\n parallaxBackgroundSize: '".freeze);
745
+ ; _buf << ((attr 'revealjs_parallaxbackgroundimage', '').to_s); _buf << ("',\n // Parallax background size in CSS syntax (e.g., \"2100px 900px\")\n parallaxBackgroundSize: '".freeze);
748
746
  ;
749
- ; _buf << ((attr 'revealjs_parallaxBackgroundSize', '').to_s); _buf << ("',\n // Number of pixels to move the parallax background per slide\n // - Calculated automatically unless specified\n // - Set to 0 to disable movement along an axis\n parallaxBackgroundHorizontal: ".freeze);
747
+ ; _buf << ((attr 'revealjs_parallaxbackgroundsize', '').to_s); _buf << ("',\n // Number of pixels to move the parallax background per slide\n // - Calculated automatically unless specified\n // - Set to 0 to disable movement along an axis\n parallaxBackgroundHorizontal: ".freeze);
750
748
  ;
751
749
  ;
752
750
  ;
753
- ; _buf << ((attr 'revealjs_parallaxBackgroundHorizontal', 'null').to_s); _buf << (",\n parallaxBackgroundVertical: ".freeze);
754
- ; _buf << ((attr 'revealjs_parallaxBackgroundVertical', 'null').to_s); _buf << (",\n // The display mode that will be used to show slides\n display: '".freeze);
751
+ ; _buf << ((attr 'revealjs_parallaxbackgroundhorizontal', 'null').to_s); _buf << (",\n parallaxBackgroundVertical: ".freeze);
752
+ ; _buf << ((attr 'revealjs_parallaxbackgroundvertical', 'null').to_s); _buf << (",\n // The display mode that will be used to show slides\n display: '".freeze);
755
753
  ;
756
754
  ; _buf << ((attr 'revealjs_display', 'block').to_s); _buf << ("',\n\n // The \"normal\" size of the presentation, aspect ratio will be preserved\n // when the presentation is scaled to fit different resolutions. Can be\n // specified using percentage units.\n width: ".freeze);
757
755
  ;
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Revealjs
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  end
@@ -130,12 +130,12 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
130
130
  controls: #{to_boolean(attr 'revealjs_controls', true)},
131
131
  // Help the user learn the controls by providing hints, for example by
132
132
  // bouncing the down arrow when they first encounter a vertical slide
133
- controlsTutorial: #{to_boolean(attr 'revealjs_controlsTutorial', true)},
133
+ controlsTutorial: #{to_boolean(attr 'revealjs_controlstutorial', true)},
134
134
  // Determines where controls appear, "edges" or "bottom-right"
135
- controlsLayout: '#{attr 'revealjs_controlsLayout', 'bottom-right'}',
135
+ controlsLayout: '#{attr 'revealjs_controlslayout', 'bottom-right'}',
136
136
  // Visibility rule for backwards navigation arrows; "faded", "hidden"
137
137
  // or "visible"
138
- controlsBackArrows: '#{attr 'revealjs_controlsBackArrows', 'faded'}',
138
+ controlsBackArrows: '#{attr 'revealjs_controlsbackarrows', 'faded'}',
139
139
  // Display a presentation progress bar
140
140
  progress: #{to_boolean(attr 'revealjs_progress', true)},
141
141
  // Display the page number of the current slide
@@ -162,7 +162,7 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
162
162
  fragments: #{to_boolean(attr 'revealjs_fragments', true)},
163
163
  // Flags whether to include the current fragment in the URL,
164
164
  // so that reloading brings you to the same fragment position
165
- fragmentInURL: #{to_boolean(attr 'revealjs_fragmentInURL', false)},
165
+ fragmentInURL: #{to_boolean(attr 'revealjs_fragmentinurl', false)},
166
166
  // Flags if the presentation is running in an embedded mode,
167
167
  // i.e. contained within a limited portion of the screen
168
168
  embedded: #{to_boolean(attr 'revealjs_embedded', false)},
@@ -170,49 +170,49 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
170
170
  // key is pressed
171
171
  help: #{to_boolean(attr 'revealjs_help', true)},
172
172
  // Flags if speaker notes should be visible to all viewers
173
- showNotes: #{to_boolean(attr 'revealjs_showNotes', false)},
173
+ showNotes: #{to_boolean(attr 'revealjs_shownotes', false)},
174
174
  // Global override for autolaying embedded media (video/audio/iframe)
175
175
  // - null: Media will only autoplay if data-autoplay is present
176
176
  // - true: All media will autoplay, regardless of individual setting
177
177
  // - false: No media will autoplay, regardless of individual setting
178
- autoPlayMedia: #{attr 'revealjs_autoPlayMedia', 'null'},
178
+ autoPlayMedia: #{attr 'revealjs_autoplaymedia', 'null'},
179
179
  // Number of milliseconds between automatically proceeding to the
180
180
  // next slide, disabled when set to 0, this value can be overwritten
181
181
  // by using a data-autoslide attribute on your slides
182
- autoSlide: #{attr 'revealjs_autoSlide', 0},
182
+ autoSlide: #{attr 'revealjs_autoslide', 0},
183
183
  // Stop auto-sliding after user input
184
- autoSlideStoppable: #{to_boolean(attr 'revealjs_autoSlideStoppable', true)},
184
+ autoSlideStoppable: #{to_boolean(attr 'revealjs_autoslidestoppable', true)},
185
185
  // Use this method for navigation when auto-sliding
186
- autoSlideMethod: #{attr 'revealjs_autoSlideMethod', 'Reveal.navigateNext'},
186
+ autoSlideMethod: #{attr 'revealjs_autoslidemethod', 'Reveal.navigateNext'},
187
187
  // Specify the average time in seconds that you think you will spend
188
188
  // presenting each slide. This is used to show a pacing timer in the
189
189
  // speaker view
190
- defaultTiming: #{attr 'revealjs_defaultTiming', 120},
190
+ defaultTiming: #{attr 'revealjs_defaulttiming', 120},
191
191
  // Enable slide navigation via mouse wheel
192
- mouseWheel: #{to_boolean(attr 'revealjs_mouseWheel', false)},
192
+ mouseWheel: #{to_boolean(attr 'revealjs_mousewheel', false)},
193
193
  // Hides the address bar on mobile devices
194
- hideAddressBar: #{to_boolean(attr 'revealjs_hideAddressBar', true)},
194
+ hideAddressBar: #{to_boolean(attr 'revealjs_hideaddressbar', true)},
195
195
  // Opens links in an iframe preview overlay
196
196
  // Add `data-preview-link` and `data-preview-link="false"` to customise each link
197
197
  // individually
198
- previewLinks: #{to_boolean(attr 'revealjs_previewLinks', false)},
198
+ previewLinks: #{to_boolean(attr 'revealjs_previewlinks', false)},
199
199
  // Transition style (e.g., none, fade, slide, convex, concave, zoom)
200
200
  transition: '#{attr 'revealjs_transition', 'slide'}',
201
201
  // Transition speed (e.g., default, fast, slow)
202
- transitionSpeed: '#{attr 'revealjs_transitionSpeed', 'default'}',
202
+ transitionSpeed: '#{attr 'revealjs_transitionspeed', 'default'}',
203
203
  // Transition style for full page slide backgrounds (e.g., none, fade, slide, convex, concave, zoom)
204
- backgroundTransition: '#{attr 'revealjs_backgroundTransition', 'fade'}',
204
+ backgroundTransition: '#{attr 'revealjs_backgroundtransition', 'fade'}',
205
205
  // Number of slides away from the current that are visible
206
- viewDistance: #{attr 'revealjs_viewDistance', 3},
206
+ viewDistance: #{attr 'revealjs_viewdistance', 3},
207
207
  // Parallax background image (e.g., "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'")
208
- parallaxBackgroundImage: '#{attr 'revealjs_parallaxBackgroundImage', ''}',
208
+ parallaxBackgroundImage: '#{attr 'revealjs_parallaxbackgroundimage', ''}',
209
209
  // Parallax background size in CSS syntax (e.g., "2100px 900px")
210
- parallaxBackgroundSize: '#{attr 'revealjs_parallaxBackgroundSize', ''}',
210
+ parallaxBackgroundSize: '#{attr 'revealjs_parallaxbackgroundsize', ''}',
211
211
  // Number of pixels to move the parallax background per slide
212
212
  // - Calculated automatically unless specified
213
213
  // - Set to 0 to disable movement along an axis
214
- parallaxBackgroundHorizontal: #{attr 'revealjs_parallaxBackgroundHorizontal', 'null'},
215
- parallaxBackgroundVertical: #{attr 'revealjs_parallaxBackgroundVertical', 'null'},
214
+ parallaxBackgroundHorizontal: #{attr 'revealjs_parallaxbackgroundhorizontal', 'null'},
215
+ parallaxBackgroundVertical: #{attr 'revealjs_parallaxbackgroundvertical', 'null'},
216
216
  // The display mode that will be used to show slides
217
217
  display: '#{attr 'revealjs_display', 'block'}',
218
218
 
@@ -21,7 +21,7 @@ table(id=@id class=['tableblock',"frame-#{attr :frame, 'all'}","grid-#{attr :gri
21
21
  - cell_content = cell.text
22
22
  - else
23
23
  - case cell.style
24
- - when :verse, :literal
24
+ - when :literal
25
25
  - cell_content = cell.text
26
26
  - else
27
27
  - cell_content = cell.content
@@ -35,8 +35,6 @@ table(id=@id class=['tableblock',"frame-#{attr :frame, 'all'}","grid-#{attr :gri
35
35
  - case cell.style
36
36
  - when :asciidoc
37
37
  div=cell_content
38
- - when :verse
39
- .verse=cell_content
40
38
  - when :literal
41
39
  .literal: pre=cell_content
42
40
  - when :header
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-revealjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Bilodeau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-01 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 1.5.6
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2.1'
22
+ version: 3.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 1.5.6
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.1'
32
+ version: 3.0.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: thread_safe
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -344,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
344
344
  - !ruby/object:Gem::Version
345
345
  version: '0'
346
346
  requirements: []
347
- rubygems_version: 3.0.2
347
+ rubygems_version: 3.0.6
348
348
  signing_key:
349
349
  specification_version: 4
350
350
  summary: Converts AsciiDoc to HTML for a Reveal.js presentation