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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14439065149d064b44c8f64f126e210e69313499
4
- data.tar.gz: f35983c3a0b6bfe328d11f94da7b7aeeb6416e44
3
+ metadata.gz: 9ec23f1e3edcee07d499d3523f788f0c7f32c216
4
+ data.tar.gz: 5c2339f3046c7570be1d230568f501199c39af8f
5
5
  SHA512:
6
- metadata.gz: adabff32486d1ba428510f1e143541ba2301fa76693720e01b93771b421ac167f8bb4a01c5e92d6f5df2794eef2a0dc8918dcbcb89a85f89dafd4d6119055903
7
- data.tar.gz: 24578533799d2684eedc44019f6745782ac5a4aec116d2a2e72a8203ccd24d5b9df34d32db43e401a39e262a84b83f989eb9d5947a4b705ceabf94c6815fa165
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| smartlink x }
136
- s11 = apply_filter(s9) {|x| section x }
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(s11){|x| audiotag x}
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: martile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.19
4
+ version: 0.6.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file