git.iko.soy/typeable/pandoc
on master help sign in
Use YAML.decode rather than YAML.decodeStrict.

(Minor)

commitcbb662ca07acf23ead5479ab4bd479883432c7d7 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 30 Jul 2018, 22:02 (8 years ago) parent78dca68
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -242,7 +242,7 @@ yamlMetaBlock = try $ do
242242 -- by including --- and ..., we allow yaml blocks with just comments:
243243 let rawYaml = unlines ("---" : (rawYamlLines ++ ["..."]))
244244 optional blanklines
245− case YAML.decodeStrict (UTF8.fromString rawYaml) of
245+ case YAML.decode (UTF8.fromStringLazy rawYaml) of
246246 Right (YAML.Mapping _ hashmap : _) -> do
247247 let alist = M.toList hashmap
248248 mapM_ (\(key, v) ->