wiki_md 0.8.9 → 0.8.10
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/wiki_md.rb +10 -3
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d0d9016c699575652cf00e5055d2d618ef175fc8555cdf1690d466c2f279182
|
|
4
|
+
data.tar.gz: 635485deecc6d852758e928103ba999bb28d43966775d76f717e87fbd18ad185
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b784989a2436ecf8084e04827d5dc4b31c445d22c3d0d4414aa3d11af8dc270a2dd935699636310997b96eedea0565dfae1a04b6a6988fc4b11d2690abff9546
|
|
7
|
+
data.tar.gz: 0b73f24246227a688311e8abca37b0ee34f8a71ecbcd9ea2708085d56fe415a847821ec4da5fbcc572d0c25aee46bc52f3ec829012e7d2476dbad698523c7674
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/wiki_md.rb
CHANGED
|
@@ -536,11 +536,18 @@ EOF
|
|
|
536
536
|
return false unless r
|
|
537
537
|
|
|
538
538
|
content = val =~ /# / ? val : r.x.lines.first + "\n" + val
|
|
539
|
-
@active_heading = title = content[/(?<=^# )
|
|
540
|
-
|
|
539
|
+
@active_heading = title = content.lines.first[/(?<=^# )[^#]+/].rstrip
|
|
540
|
+
|
|
541
|
+
if content.lines.last[/^\+/] then
|
|
542
|
+
tagline1 = content.lines.last[/^\+\s+(.*)/,1]
|
|
543
|
+
else
|
|
544
|
+
tagline1 = content.lines.first[/(?<=# )[^#]+(.*)/]\
|
|
545
|
+
.scan(/(?<=#)\w+/).join(' ')
|
|
546
|
+
content = title + "\n" + content.lines[1..-1].join + "\n\n+ " + tagline1
|
|
547
|
+
end
|
|
541
548
|
|
|
542
549
|
rx = @dx.all.find {|x| x.title =~ /#{q}/}
|
|
543
|
-
|
|
550
|
+
|
|
544
551
|
|
|
545
552
|
puts 'tagline1: ' + tagline1.inspect if @debug
|
|
546
553
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|