From aea93977f56810b512478652428ff2be89768788 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 6 Jan 2011 16:53:21 -0800 Subject: Markdown writer: blank line after delimited code block. --- src/Text/Pandoc/Writers/Markdown.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Text/Pandoc/Writers/Markdown.hs') diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index 3b063c8cd..d402d6c12 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -234,8 +234,8 @@ blockToMarkdown opts (CodeBlock attribs str) = return $ if writerStrictMarkdown opts || attribs == ([],[],[]) then nest (writerTabStop opts) (text str) <> blankline else -- use delimited code block - flush $ tildes <> space <> attrs <> cr <> text str <> - cr <> tildes <> blankline + flush (tildes <> space <> attrs <> cr <> text str <> + cr <> tildes) <> blankline where tildes = text "~~~~" attrs = braces $ hsep [attribId, attribClasses, attribKeys] attribId = case attribs of -- cgit v1.2.3