asciidoctor-revealjs 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +31 -0
- data/LICENSE.adoc +1 -1
- data/README.adoc +40 -36
- data/asciidoctor-revealjs.gemspec +6 -1
- data/examples/source-callouts.adoc +3 -5
- data/examples/source-coderay.adoc +33 -0
- data/examples/source-highlightjs-html.adoc +22 -0
- data/examples/source-highlightjs.adoc +16 -0
- data/examples/source-prettify.adoc +16 -0
- data/examples/source-pygments.adoc +32 -0
- data/lib/asciidoctor-revealjs/converter.rb +3922 -0
- data/lib/asciidoctor-revealjs/version.rb +1 -1
- data/templates/listing.html.slim +4 -2
- metadata +8 -2
data/templates/listing.html.slim
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
- code_class = language ? [language, "language-#{language}"] : nil
|
11
11
|
- pre_class = ['highlight']
|
12
12
|
- pre_lang = nil
|
13
|
+
- code_noescape = false
|
13
14
|
- case attr 'source-highlighter'
|
14
15
|
- when 'coderay'
|
15
16
|
- pre_class = ['CodeRay']
|
@@ -25,9 +26,10 @@
|
|
25
26
|
- pre_lang = language
|
26
27
|
- pre_class = code_class = nil
|
27
28
|
- nowrap = false
|
28
|
-
|
29
|
+
- when 'highlightjs', 'highlight.js'
|
30
|
+
- code_noescape=true
|
29
31
|
- pre_class << 'nowrap' if nowrap
|
30
32
|
pre class=pre_class lang=pre_lang
|
31
|
-
code class=code_class =content
|
33
|
+
code data-noescape=code_noescape class=code_class =content
|
32
34
|
- else
|
33
35
|
pre class=(nowrap ? 'nowrap' : nil) =content
|
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: 1.1.
|
4
|
+
version: 1.1.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:
|
11
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|
@@ -194,6 +194,11 @@ files:
|
|
194
194
|
- examples/slide-state.adoc
|
195
195
|
- examples/slide-state.css
|
196
196
|
- examples/source-callouts.adoc
|
197
|
+
- examples/source-coderay.adoc
|
198
|
+
- examples/source-highlightjs-html.adoc
|
199
|
+
- examples/source-highlightjs.adoc
|
200
|
+
- examples/source-prettify.adoc
|
201
|
+
- examples/source-pygments.adoc
|
197
202
|
- examples/speaker-notes.adoc
|
198
203
|
- examples/theme-custom.adoc
|
199
204
|
- examples/theme-custom.css
|
@@ -206,6 +211,7 @@ files:
|
|
206
211
|
- examples/vertical-slides.adoc
|
207
212
|
- examples/video.adoc
|
208
213
|
- lib/asciidoctor-revealjs.rb
|
214
|
+
- lib/asciidoctor-revealjs/converter.rb
|
209
215
|
- lib/asciidoctor-revealjs/version.rb
|
210
216
|
- lib/asciidoctor-templates-compiler.rb
|
211
217
|
- templates/admonition.html.slim
|