aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-07-01 22:39:56 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-07-01 22:39:56 -0700
commit0fa5792790cf06fc4b29d7808916c5bbce664aa4 (patch)
tree0886428f7b4c2f54c5ee5429d30c908fdf013941 /src/Text/Pandoc/Readers
parentf3f557d988b69e83038a0756f3f72ab8334e2854 (diff)
downloadpandoc-0fa5792790cf06fc4b29d7808916c5bbce664aa4.tar.gz
Markdown reader: Ignore fields ending with _ in YAML headers.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index e1d518350..d333c0cd4 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -248,9 +248,9 @@ yamlTitleBlock = try $ do
addWarning (Just pos) "YAML header is not an object"
return $ return id
--- ignore fields starting with _
+-- ignore fields ending with _
ignorable :: Text -> Bool
-ignorable t = (T.pack "_") `T.isPrefixOf` t
+ignorable t = (T.pack "_") `T.isSuffixOf` t
toMetaValue :: ReaderOptions -> Text -> MetaValue
toMetaValue opts x =