mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
Markdown reader: Be less restrictive about class attributes.
This allows attributes like `C++`. Any nonspace and non-}.
This commit is contained in:
@@ -506,7 +506,7 @@ identifierAttr = try $ do
|
||||
classAttr :: Parser [Char] st (String, [String], [a])
|
||||
classAttr = try $ do
|
||||
char '.'
|
||||
result <- identifier
|
||||
result <- many1 $ noneOf " \t\n\r}"
|
||||
return ("",[result],[])
|
||||
|
||||
keyValAttr :: Parser [Char] st (String, [a], [(String, String)])
|
||||
|
||||
Reference in New Issue
Block a user