Markdown writer: Fixed false ordered lists in YAML metadata.
Now we properly escape things that would otherwise start ordered
lists, such as
---
title: 1. inline
...
Closes #3492.
Closes #1685.
commit13698e79680c656392aecc51a60cd1e6e19bdefa
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 6 Mar 2017, 21:18 (10 years ago)
parentddc2b90
src/Text/Pandoc/Writers/Markdown.hs+1−1
@@ -185,7 +185,7 @@ pandocToMarkdown opts (Pandoc meta blocks) = do
185185 isPlain <- asks envPlain
186186 metadata <- metaToJSON'
187187 (fmap (render colwidth) . blockListToMarkdown opts)
188− (fmap (render colwidth) . inlineListToMarkdown opts)
188+ (fmap (render colwidth) . blockToMarkdown opts . Plain)
189189 meta
190190 let title' = maybe empty text $ getField "title" metadata
191191 let authors' = maybe [] (map text) $ getField "author" metadata