git.iko.soy/typeable/pandoc
on master help sign in
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

commit4ded47740906e04de24c7dfa4166ef1eceefe1df authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateFri 26 Feb 2010, 23:57 (17 years ago) parente3ea078
1 file changed+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
src/Text/Pandoc/Readers/LaTeX.hs+1−1
@@ -539,7 +539,7 @@ sect = try (string "\\S") >> return (Str [chr 167])
539539
540540escapedChar :: GenParser Char st Inline
541541escapedChar = do
542− result <- escaped (oneOf " $%&_#{}\n")
542+ result <- escaped (oneOf specialChars)
543543 return $ if result == Str "\n" then Str " " else result
544544
545545-- nonescaped special characters