aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-23 22:36:43 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-23 22:36:43 +0200
commita20302d9cfc3651a217bd76e9f9cce3e285433d4 (patch)
tree5495e0369d2e80658727281a0a05308059cb6e35 /src/Text
parent5812ac03902169e5ce8593c26fb2d8cffafbd828 (diff)
downloadpandoc-a20302d9cfc3651a217bd76e9f9cce3e285433d4.tar.gz
Added comment in source.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index b3b275674..31b51f237 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -305,6 +305,9 @@ toMetaValue x =
p' <- p
return $ MetaInlines (B.toList p')
endsWithNewline = T.pack "\n" `T.isSuffixOf` x
+ -- Note: a standard quoted or unquoted YAML value will
+ -- not end in a newline, but a "block" set off with
+ -- `|` or `>` will.
yamlToMeta :: PandocMonad m
=> Yaml.Value -> MarkdownParser m (F MetaValue)