@@ -281,13 +281,18 @@ ignorable t = T.pack "_" `T.isSuffixOf` t
282toMetaValue :: ReaderOptions -> Text -> MetaValue
282toMetaValue :: ReaderOptions -> Text -> MetaValue
283toMetaValue opts x =
283toMetaValue opts x =
284− case readMarkdown opts (T.unpack x) of
284+ case readMarkdown opts' (T.unpack x) of
285 Pandoc _ [Plain xs] -> MetaInlines xs
285 Pandoc _ [Plain xs] -> MetaInlines xs
286 Pandoc _ [Para xs]
286 Pandoc _ [Para xs]
287 | endsWithNewline x -> MetaBlocks [Para xs]
287 | endsWithNewline x -> MetaBlocks [Para xs]
288 | otherwise -> MetaInlines xs
288 | otherwise -> MetaInlines xs
289 Pandoc _ bs -> MetaBlocks bs
289 Pandoc _ bs -> MetaBlocks bs
290 where endsWithNewline t = T.pack "\n" `T.isSuffixOf` t
290 where endsWithNewline t = T.pack "\n" `T.isSuffixOf` t
291+ opts' = opts{readerExtensions=readerExtensions opts `Set.difference` meta_exts}
292+ meta_exts = Set.fromList [ Ext_pandoc_title_block
293+ , Ext_mmd_title_block
294+ , Ext_yaml_metadata_block
292yamlToMeta :: ReaderOptions -> Yaml.Value -> MetaValue
297yamlToMeta :: ReaderOptions -> Yaml.Value -> MetaValue
293yamlToMeta opts (Yaml.String t) = toMetaValue opts t
298yamlToMeta opts (Yaml.String t) = toMetaValue opts t