]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Make all web link blocks into sections in markdown.
authorPetter Reinholdtsen <pere@hungry.com>
Fri, 9 Feb 2018 11:47:15 +0000 (11:47 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 22 Feb 2018 18:12:09 +0000 (18:12 +0000)
fixup.rb

index e58f23248befb13f726f4487de14f6b37e3b9980..b60ebb84d3286c1857655e805837e9991bcd547b 100644 (file)
--- a/fixup.rb
+++ b/fixup.rb
@@ -268,6 +268,9 @@ data.each_with_index do |lin, idx|
   end
   if lin =~ /^(### Notes|Web links?)/
     noteblock=true
   end
   if lin =~ /^(### Notes|Web links?)/
     noteblock=true
+    # Turn web link line into section header, to make it easier to
+    # find by fixup-docbook.rb.
+    lin.gsub!(/^(Web links?)/, "### \\1")
   end
 end
 
   end
 end