diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-02-26 23:57:41 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-02-26 23:57:41 +0000 |
commit | 4ded47740906e04de24c7dfa4166ef1eceefe1df (patch) | |
tree | 1e03a8032a90d28e5afbd0938c832e9e08aa5c88 | |
parent | e3ea078b269b04e7ae3eabb500ef55aae791f509 (diff) | |
download | pandoc-4ded47740906e04de24c7dfa4166ef1eceefe1df.tar.gz |
LaTeX reader: allow any special character to be escaped.
Resolves Issue #221.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1845 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index f8ab8b8b9..e687d1f79 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -539,7 +539,7 @@ sect = try (string "\\S") >> return (Str [chr 167]) escapedChar :: GenParser Char st Inline escapedChar = do - result <- escaped (oneOf " $%&_#{}\n") + result <- escaped (oneOf specialChars) return $ if result == Str "\n" then Str " " else result -- nonescaped special characters |