diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-15 10:03:19 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-15 10:06:03 -0800 |
commit | 47c360e0795a5f27e4906ea22fff388b779f270a (patch) | |
tree | 18808b42697ea719cbc511c76dcca04bca7d5aff /src/Text/Pandoc/Readers/LaTeX.hs | |
parent | 544f3e5b45c7452c7bb90a630ec0904c4808113e (diff) | |
download | pandoc-47c360e0795a5f27e4906ea22fff388b779f270a.tar.gz |
Improved texorpdfstring patch #1148.
* Make LaTeX reader recognize texorpdfstring.
* Don't use texorpdfstring unless it's actually needed.
* Fix tests.
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 9420d602f..e1976035d 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -417,6 +417,7 @@ inlineCommands = M.fromList $ , ("(", mathInline $ manyTill anyChar (try $ string "\\)")) , ("[", mathDisplay $ manyTill anyChar (try $ string "\\]")) , ("ensuremath", mathInline $ braced) + , ("texorpdfstring", (\_ x -> x) <$> tok <*> tok) , ("P", lit "¶") , ("S", lit "§") , ("$", lit "$") |