aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-06-11 10:17:12 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-06-11 10:17:12 -0700
commita43e0ad5d683aec901622bd0cef8fa6fa47b7c59 (patch)
treef04fffa05c6c06307ecbb2ba655b1dc4bc84b42a /src/Text/Pandoc
parent50ba5a801a2593598f1484c7ce4aa941f00ed0b0 (diff)
downloadpandoc-a43e0ad5d683aec901622bd0cef8fa6fa47b7c59.tar.gz
Markdown writer: Don't wrap attributes in fenced code blocks.
Diffstat (limited to 'src/Text/Pandoc')
-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 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