Skip to content

Commit

Permalink
Markdown Use a nonzero space to prevent false recognition of list mar…
Browse files Browse the repository at this point in the history
…ker.

This addresses #516, but in a rather hackish way.  There ought to
be a better solution.
  • Loading branch information
John MacFarlane committed May 20, 2012
1 parent b2340cd commit 79a17ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Writers/Markdown.hs
Expand Up @@ -218,7 +218,7 @@ blockToMarkdown opts (Para inlines) = do
let esc = if (not (writerStrictMarkdown opts)) &&
not (stPlain st) &&
beginsWithOrderedListMarker (render Nothing contents)
then text "\\"
then text "\x200B" -- zero-width space, a hack
else empty
return $ esc <> contents <> blankline
blockToMarkdown _ (RawBlock f str)
Expand Down

0 comments on commit 79a17ef

Please sign in to comment.