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
This commit is contained in:
parent
e3ea078b26
commit
4ded477409
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue