martile 0.6.15 → 0.6.16
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 +10 -8
- 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: 38673004108870b7a9f1bd3b4cee668cee3bd51d
|
4
|
+
data.tar.gz: e228ce769699580dcdd6c1b6253bfdaa165c47aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15b72cd30a8005dac5a27dc40f64ccb1307c4a30e2d9fbdc610bb957865ffbb931b0aff646c80b3291f8838b5544d53ce6ce0e09250e4a18b9cc6f362e59d87f
|
7
|
+
data.tar.gz: ec677a97b18fd47a0b7a1e47f4cd44224056845eb55a82098c6eb7dc82cf0dffcea0016ea2d4d6a296ebd402ca55d1c1d867f20e75a29a6e564283a24419d96b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -11,6 +11,8 @@ require 'kvx'
|
|
11
11
|
|
12
12
|
# bug fix: 22-Oct-2015 The method apply_filter() is now used
|
13
13
|
# with the section() method
|
14
|
+
# When parsing a code block a new line character on its
|
15
|
+
# own line is now checked for as well as the 4 spaces.
|
14
16
|
# feature: 10-Oct-2015 A hyperlink can now be create from a
|
15
17
|
# list item containing a URL
|
16
18
|
# bug fix: 06-Oct-2015 Can now handle multiple smart links on the same line
|
@@ -133,15 +135,15 @@ class Martile
|
|
133
135
|
#puts 's9: ' + s9.inspect
|
134
136
|
|
135
137
|
#s11 = section s9
|
136
|
-
puts 's11 : ' + s11.inspect
|
137
|
-
s12 = apply_filter(s11){|x|
|
138
|
-
puts 's12 : ' + s12.inspect
|
138
|
+
#puts 's11 : ' + s11.inspect
|
139
|
+
s12 = apply_filter(s11){|x| audiotag x}
|
140
|
+
#puts 's12 : ' + s12.inspect
|
139
141
|
s13 = apply_filter(s12){|x| videotag x}
|
140
|
-
puts 's13 : ' + s13.inspect
|
142
|
+
#puts 's13 : ' + s13.inspect
|
141
143
|
s14 = apply_filter(s13){|x| iframetag x}
|
142
|
-
puts 's14 : ' + s14.inspect
|
144
|
+
#puts 's14 : ' + s14.inspect
|
143
145
|
s15 = apply_filter(s14){|x| kvx_to_dl x}
|
144
|
-
puts 's15 : ' + s15.inspect
|
146
|
+
#puts 's15 : ' + s15.inspect
|
145
147
|
s16 = apply_filter(s15){|x| list_item_to_hyperlink x}
|
146
148
|
s10 = apply_filter(s16) {|x| mtlite_utils x }
|
147
149
|
|
@@ -183,7 +185,7 @@ class Martile
|
|
183
185
|
|
184
186
|
b =[]
|
185
187
|
|
186
|
-
while s2 =~ /^ {4}/ do
|
188
|
+
while s2 =~ /^ {4}|\n/ do
|
187
189
|
|
188
190
|
a = s2.lines.to_a
|
189
191
|
r = a.take_while{|x| x[/^( {4}|\n)/]}
|
@@ -561,4 +563,4 @@ class Martile
|
|
561
563
|
s.gsub(/\B*( +)([^\n]+)\s+(https?:\/\/.*)/,'\1[\2](\3)')
|
562
564
|
|
563
565
|
end
|
564
|
-
end
|
566
|
+
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|