From: Petter Reinholdtsen Date: Tue, 6 Feb 2018 08:24:38 +0000 (+0100) Subject: Adjust markdown ot list title and author the way pandoc like it. X-Git-Tag: es-printed~575 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/41e7f5db39253d0d5b0a7acd86bcdc4ff89dfdd4?ds=sidebyside Adjust markdown ot list title and author the way pandoc like it. --- diff --git a/fixup.rb b/fixup.rb index f70f996..cd025c1 100644 --- a/fixup.rb +++ b/fixup.rb @@ -66,6 +66,12 @@ end log 0, 'correct emphesis in some titles' data.map {|lin| lin.gsub!(/ *\* \\\[/, ' *\[')} +log 0, 'tag title and author' +data.delete_at(1) # Remove unwanted blank line between title and authors +data[0].sub!(/^/, '% ') # title +data[1].sub!(/^/, '% ') # authors +data[1].sub!(/ and /, ';') # authors + # Mark up headings: Very artisanal and suboptimal, but should do the # trick. #