diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2016-05-31 11:58:40 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2016-06-05 11:28:57 +0200 |
commit | 06dfe3276dcec57d50ecd32d6f0df7269095584c (patch) | |
tree | dfa77a67197a83889652d61255e55e77cddc1ad0 /src/Text/Pandoc | |
parent | 97f8f4ad4bc190ba0c27713eeea94f661634d418 (diff) | |
download | pandoc-06dfe3276dcec57d50ecd32d6f0df7269095584c.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Org/Inlines.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Org/Inlines.hs b/src/Text/Pandoc/Readers/Org/Inlines.hs index 001aeb569..084134004 100644 --- a/src/Text/Pandoc/Readers/Org/Inlines.hs +++ b/src/Text/Pandoc/Readers/Org/Inlines.hs @@ -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) |