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.
This commit is contained in:
parent
b2340cd874
commit
79a17ef9b9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue