diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-08-16 10:56:16 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-08-16 10:56:16 -0700 |
commit | ae61d5f57dc8094eb40a9e83427db7fb02afcefb (patch) | |
tree | 03014c28be5c909e3bb80121acceb65d4e87fc24 /src/Text | |
parent | db715ca84797c8fc945392b61c1642434e8fb2b1 (diff) | |
download | pandoc-ae61d5f57dc8094eb40a9e83427db7fb02afcefb.tar.gz |
LaTeX reader: rudimentary support for `\hyperlink`.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 4 |
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") |