Org reader: add semicolon to list of special chars

Semicolons are used as special characters in citations syntax.  This
ensures the correct parsing of Pandoc-style citations:

    [prefix; @key; suffix]

Previously, parsing would have failed unless there was a space or other
special character as the last <prefix> character.
This commit is contained in:
Albert Krewinkel
2016-06-05 11:28:57 +02:00
parent 97f8f4ad4b
commit 06dfe3276d
+1 -1
View File
@@ -127,7 +127,7 @@ inlines = trimInlinesF . mconcat <$> many1 inline
-- treat these as potentially non-text when parsing inline:
specialChars :: [Char]
specialChars = "\"$'()*+-,./:<=>[\\]^_{|}~"
specialChars = "\"$'()*+-,./:;<=>[\\]^_{|}~"
whitespace :: OrgParser (F Inlines)