aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-08-16 10:56:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-16 10:56:16 -0700
commitae61d5f57dc8094eb40a9e83427db7fb02afcefb (patch)
tree03014c28be5c909e3bb80121acceb65d4e87fc24 /src
parentdb715ca84797c8fc945392b61c1642434e8fb2b1 (diff)
downloadpandoc-ae61d5f57dc8094eb40a9e83427db7fb02afcefb.tar.gz
LaTeX reader: rudimentary support for `\hyperlink`.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs
index 6b96460e8..de2b8f913 100644
--- a/src/Text/Pandoc/Readers/LaTeX.hs
+++ b/src/Text/Pandoc/Readers/LaTeX.hs
@@ -1384,7 +1384,11 @@ inlineCommands = M.fromList $
<|> citation "citeauthor" AuthorInText False)
, ("nocite", mempty <$ (citation "nocite" NormalCitation False >>=
addMeta "nocite"))
+ -- hyperlink: for now, we just preserve contents.
+ -- we might add the actual links, but we need to avoid clashes
+ -- with ids produced by label.
, ("hypertarget", braced >> tok)
+ , ("hyperlink", braced >> tok)
-- glossaries package
, ("gls", doAcronym "short")
, ("Gls", doAcronym "short")