Markdown reader: Fixed bug parsing key/value attributes.

Parsing failed if you had an unquoted attribute immediately
before the final '}'.
This commit is contained in:
John MacFarlane
2013-02-12 11:20:36 -08:00
parent 0e03962615
commit ea9b7a4a52
+1 -1
View File
@@ -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)