From ae61d5f57dc8094eb40a9e83427db7fb02afcefb Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 16 Aug 2017 10:56:16 -0700 Subject: LaTeX reader: rudimentary support for `\hyperlink`. --- src/Text/Pandoc/Readers/LaTeX.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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") -- cgit v1.2.3