Markdown reader: allow empty attributes.

See #2944.
This commit is contained in:
John MacFarlane 2018-04-19 23:01:52 -07:00
parent 276894a2f2
commit f508c833f1

View file

@ -674,6 +674,8 @@ keyValAttr = try $ do
char '='
val <- enclosed (char '"') (char '"') litChar
<|> enclosed (char '\'') (char '\'') litChar
<|> ("" <$ try (string "\"\""))
<|> ("" <$ try (string "''"))
<|> many (escapedChar' <|> noneOf " \t\n\r}")
return $ \(id',cs,kvs) ->
case key of