aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Writers/Markdown.hs4
1 files changed, 2 insertions, 2 deletions
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