diff options
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Writers/Markdown.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index 7bf6038be..76e804cf3 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -316,10 +316,10 @@ blockToMarkdown opts (CodeBlock (_,classes,_) str) blockToMarkdown opts (CodeBlock attribs str) = return $ case attribs of x | x /= nullAttr && isEnabled Ext_fenced_code_blocks opts -> - tildes <> space <> attrs <> cr <> text str <> + tildes <> " " <> attrs <> cr <> text str <> cr <> tildes <> blankline (_,(cls:_),_) | isEnabled Ext_backtick_code_blocks opts -> - backticks <> space <> text cls <> cr <> text str <> + backticks <> " " <> text cls <> cr <> text str <> cr <> backticks <> blankline _ -> nest (writerTabStop opts) (text str) <> blankline where tildes = text $ case [ln | ln <- lines str, all (=='~') ln] of |