From 41e7f5db39253d0d5b0a7acd86bcdc4ff89dfdd4 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 6 Feb 2018 09:24:38 +0100 Subject: [PATCH] Adjust markdown ot list title and author the way pandoc like it. --- fixup.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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. # -- 2.47.2