git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: Fixed bug parsing key/value attributes.

Parsing failed if you had an unquoted attribute immediately before the final '}'.

commitea9b7a4a528fd9684fcb2473e1ef7718acccbc6c authorJohn MacFarlane <jgm@berkeley.edu> dateTue 12 Feb 2013, 11:20 (14 years ago) parent0e03962
1 file changed+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -516,7 +516,7 @@ keyValAttr = try $ do
516516 char '='
517517 val <- enclosed (char '"') (char '"') anyChar
518518 <|> enclosed (char '\'') (char '\'') anyChar
519− <|> many nonspaceChar
519+ <|> many (noneOf " \t\n\r}")
520520 return ("",[],[(key,val)])
521521
522522codeBlockFenced :: MarkdownParser (F Blocks)