slideshow 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,9 @@ class Gen
|
|
48
48
|
# saveguard with notextile wrapper etc./no further processing needed
|
49
49
|
# note: add leading newlines to avoid block-runons
|
50
50
|
"\n\n<notextile>\n#{text}\n</notextile>\n"
|
51
|
+
elsif markup_type == :markdown
|
52
|
+
# wrap in newlines to avoid runons
|
53
|
+
"\n\n#{text}\n\n"
|
51
54
|
else
|
52
55
|
text
|
53
56
|
end
|
@@ -13,6 +13,7 @@ module Slideshow
|
|
13
13
|
|
14
14
|
content.gsub!( /\b[ ]+\/{2}[ ]+\b/) do |match|
|
15
15
|
inline_count += 1
|
16
|
+
## todo: use slide('') directive helper?
|
16
17
|
"\n\n<!-- _S9SLIDE_ -->\n\n"
|
17
18
|
end
|
18
19
|
|
@@ -27,6 +28,7 @@ module Slideshow
|
|
27
28
|
|
28
29
|
content.gsub!( /^[ ]*\/{2}[ ]*$/ ) do |match|
|
29
30
|
line_count += 1
|
31
|
+
## todo: use slide('') directive helper?
|
30
32
|
"\n\n<!-- _S9SLIDE_ -->\n\n"
|
31
33
|
end
|
32
34
|
|
@@ -22,15 +22,18 @@ def css( &block )
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def slide( params )
|
25
|
-
|
25
|
+
# note: to avoid runons with blocks (wrap in double newlines)
|
26
|
+
|
27
|
+
"\n\n<!-- _S9SLIDE_ #{params ? params : ''} -->\n\n"
|
26
28
|
end
|
27
29
|
|
28
30
|
def style( params )
|
29
|
-
|
31
|
+
# note: to avoid runons with blocks (wrap in double newlines)
|
32
|
+
|
33
|
+
"\n\n<!-- _S9STYLE_ #{params ? params : ''} -->\n\n"
|
30
34
|
end
|
31
|
-
|
32
|
-
|
33
|
-
|
35
|
+
|
36
|
+
|
34
37
|
end # module DirectiveHelper
|
35
38
|
end # module Slideshow
|
36
39
|
|
@@ -38,5 +41,3 @@ class Slideshow::Gen
|
|
38
41
|
include Slideshow::DirectiveHelper
|
39
42
|
end
|
40
43
|
|
41
|
-
|
42
|
-
|
data/lib/slideshow/version.rb
CHANGED
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: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 3
|
10
|
+
version: 1.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gerald Bauer
|