slideshow 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/slideshow.rb +1 -1
- data/lib/slideshow/filters/text_filter.rb +2 -2
- data/lib/slideshow/gen.rb +2 -2
- metadata +3 -3
data/lib/slideshow.rb
CHANGED
@@ -33,7 +33,7 @@ def directives_percent_style( content )
|
|
33
33
|
# - pandoc uses % for its own markdown extension
|
34
34
|
# - don't process % pass it along/through to pandoc
|
35
35
|
|
36
|
-
return content if @markup_type == :markdown &&
|
36
|
+
return content if @markup_type == :markdown && Markdown.lib == 'pandoc-ruby'
|
37
37
|
|
38
38
|
|
39
39
|
directive_unparsed = 0
|
@@ -101,7 +101,7 @@ def comments_percent_style( content )
|
|
101
101
|
# skip filter for pandoc
|
102
102
|
# - pandoc uses % for its own markdown extension
|
103
103
|
|
104
|
-
return content if @markup_type == :markdown &&
|
104
|
+
return content if @markup_type == :markdown && Markdown.lib == 'pandoc-ruby'
|
105
105
|
|
106
106
|
# remove comments
|
107
107
|
# % comments
|
data/lib/slideshow/gen.rb
CHANGED
@@ -171,7 +171,7 @@ class Gen
|
|
171
171
|
|
172
172
|
# 1) add slide break
|
173
173
|
|
174
|
-
if (@markup_type == :markdown &&
|
174
|
+
if (@markup_type == :markdown && Markdown.lib == 'pandoc-ruby') || @markup_type == :rest
|
175
175
|
content = add_slide_directive_before_div_h1( content )
|
176
176
|
else
|
177
177
|
content = add_slide_directive_before_h1( content )
|
@@ -370,7 +370,7 @@ class Gen
|
|
370
370
|
# make content2 and slide2 available to erb template
|
371
371
|
# -- todo: cleanup variable names and use attr_readers for content and slide
|
372
372
|
|
373
|
-
if @markup_type == :markdown && config.markdown_post_processing?(
|
373
|
+
if @markup_type == :markdown && config.markdown_post_processing?( Markdown.lib ) == false
|
374
374
|
puts " Skipping post-processing (passing content through as is)..."
|
375
375
|
@content = content # content all-in-one - make it available in erb templates
|
376
376
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slideshow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gerald Bauer
|