aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-02-12 11:20:36 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2013-02-12 11:20:36 -0800
commitea9b7a4a528fd9684fcb2473e1ef7718acccbc6c (patch)
treed7f6ed387c1588fcd36d8c27dbd374a9a5aa955b /src/Text
parent0e03962615a84f11b8c566cdccdd195b0a543497 (diff)
downloadpandoc-ea9b7a4a528fd9684fcb2473e1ef7718acccbc6c.tar.gz
Markdown reader: Fixed bug parsing key/value attributes.
Parsing failed if you had an unquoted attribute immediately before the final '}'.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 6b144f35e..04f839612 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -516,7 +516,7 @@ keyValAttr = try $ do
char '='
val <- enclosed (char '"') (char '"') anyChar
<|> enclosed (char '\'') (char '\'') anyChar
- <|> many nonspaceChar
+ <|> many (noneOf " \t\n\r}")
return ("",[],[(key,val)])
codeBlockFenced :: MarkdownParser (F Blocks)