aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorMauro Bieg <mb21@users.noreply.github.com>2019-02-08 21:44:02 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2019-02-08 12:44:02 -0800
commit62c5d17d3f468214e308289cf26db09d56b19ec1 (patch)
treefd3c78cff32352914c7f4f4cd1cbe95f306466a0 /src/Text
parent403aafe9830fe45793129614e220c941ef055121 (diff)
downloadpandoc-62c5d17d3f468214e308289cf26db09d56b19ec1.tar.gz
Make --metadata-file use pandoc-markdown (#5279)
see #5272
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index e24b93d7d..646e5aaa7 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -254,7 +254,8 @@ yamlToMeta bstr = do
let parser = do
meta <- yamlBsToMeta bstr
return $ runF meta defaultParserState
- parsed <- readWithM parser def ""
+ opts = def{ readerExtensions = pandocExtensions }
+ parsed <- readWithM parser def{ stateOptions = opts } ""
case parsed of
Right result -> return result
Left e -> throwError e