aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-11-17 09:07:25 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-11-17 09:07:25 -0800
commite690c87dc4c3ff79689d9a887a9b5e3bffbb5d37 (patch)
tree0b13d8c541f61d036481637377cc55d5dd7c32f7 /src/Text/Pandoc/Readers/LaTeX.hs
parent0fd2176e29bd1118d314c6179455fb78bed35aea (diff)
downloadpandoc-e690c87dc4c3ff79689d9a887a9b5e3bffbb5d37.tar.gz
LaTeX reader: Support `\textnormal` as span with class "nodecor".
This is needed for pandoc-citeproc.
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 681dcb077..689b12c8e 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -373,6 +373,7 @@ inlineCommands = M.fromList $
, ("backslash", lit "\\")
, ("slash", lit "/")
, ("textbf", strong <$> tok)
+ , ("textnormal", spanWith ("",["nodecor"],[]) <$> tok)
, ("ldots", lit "…")
, ("dots", lit "…")
, ("mdots", lit "…")