git.iko.soy/typeable/pandoc
on master help sign in
Markdown Use a nonzero space to prevent false recognition of list marker.

This addresses #516, but in a rather hackish way. There ought to be a better solution.

commit79a17ef9b9066c3b34e22d7e0ac54ae0bc6800e4 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 19 May 2012, 17:44 (14 years ago) parentb2340cd
1 file changed+1−1
src/Text/Pandoc/Writers/Markdown.hs+1−1
src/Text/Pandoc/Writers/Markdown.hs+1−1
@@ -218,7 +218,7 @@ blockToMarkdown opts (Para inlines) = do
218218 let esc = if (not (writerStrictMarkdown opts)) &&
219219 not (stPlain st) &&
220220 beginsWithOrderedListMarker (render Nothing contents)
221− then text "\\"
221+ then text "\x200B" -- zero-width space, a hack
222222 else empty
223223 return $ esc <> contents <> blankline
224224blockToMarkdown _ (RawBlock f str)