From 4ded47740906e04de24c7dfa4166ef1eceefe1df Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Fri, 26 Feb 2010 23:57:41 +0000 Subject: 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 --- src/Text/Pandoc/Readers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc') 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 -- cgit v1.2.3