martile 0.6.19 → 0.6.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +8 -7
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ec23f1e3edcee07d499d3523f788f0c7f32c216
|
4
|
+
data.tar.gz: 5c2339f3046c7570be1d230568f501199c39af8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0da8582d41d702ada827ccc447fdf7d822b7280a87a57c1cfb32d8ca5ef1c03c46d66c00259ba7d4c17907b5bf9df4ad2f441cf1c1c7d3f9fd53f3610ccd1acb
|
7
|
+
data.tar.gz: f2e0a37d79ff22a03be74f6e7dc37aead91cb90706fde5ce4170d67b098f7bcceb0e9d5e48b70b603cd8884b3308b86eebd225b992499f12805e7a9baa23741d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -13,6 +13,8 @@ require 'kvx'
|
|
13
13
|
# now output to a regular anchor tag
|
14
14
|
# It should now identify when using a section equals sign
|
15
15
|
# to terminate a section block
|
16
|
+
# The content of a section block can now be processed
|
17
|
+
# using the Martile object recursively
|
16
18
|
# bug fix: 22-Oct-2015 The method apply_filter() is now used
|
17
19
|
# with the section() method
|
18
20
|
# feature: 10-Oct-2015 A hyperlink can now be create from a
|
@@ -132,13 +134,14 @@ class Martile
|
|
132
134
|
|
133
135
|
s8 = apply_filter(s7) {|x| underline x }
|
134
136
|
#puts 's8: ' + s8.inspect
|
135
|
-
s9 = apply_filter(s8) {|x|
|
136
|
-
|
137
|
+
s9 = apply_filter(s8) {|x| section x }
|
138
|
+
s10 = apply_filter(s9) {|x| smartlink x }
|
139
|
+
|
137
140
|
#puts 's9: ' + s9.inspect
|
138
141
|
|
139
142
|
#s11 = section s9
|
140
143
|
#puts 's11 : ' + s11.inspect
|
141
|
-
s12 = apply_filter(
|
144
|
+
s12 = apply_filter(s10){|x| audiotag x}
|
142
145
|
#puts 's12 : ' + s12.inspect
|
143
146
|
s13 = apply_filter(s12){|x| videotag x}
|
144
147
|
#puts 's13 : ' + s13.inspect
|
@@ -515,8 +518,7 @@ class Martile
|
|
515
518
|
|
516
519
|
a2 = a.inject([[]]) do |r,x|
|
517
520
|
|
518
|
-
|
519
|
-
match = x.match(/^=[^=]#?(\w+)?/)
|
521
|
+
match = x.match(/^={1}(?:#)?(\w+)?$/)
|
520
522
|
|
521
523
|
if match then
|
522
524
|
|
@@ -525,7 +527,7 @@ class Martile
|
|
525
527
|
list = r.pop
|
526
528
|
r << ["%s%s</section>" %
|
527
529
|
[list[0], \
|
528
|
-
RDiscount.new(list[1..-1].join).to_html
|
530
|
+
RDiscount.new(Martile.new(list[1..-1].join).to_html).to_html
|
529
531
|
]
|
530
532
|
]
|
531
533
|
r << []
|
@@ -544,7 +546,6 @@ class Martile
|
|
544
546
|
r
|
545
547
|
end
|
546
548
|
|
547
|
-
|
548
549
|
a2.join
|
549
550
|
end
|
550
551
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|