git.iko.soy/typeable/pandoc
on master help sign in
LaTeX reader: rudimentary support for `\hyperlink`.
commitae61d5f57dc8094eb40a9e83427db7fb02afcefb authorJohn MacFarlane <jgm@berkeley.edu> dateWed 16 Aug 2017, 10:56 (9 years ago) parentdb715ca
1 file changed+4
src/Text/Pandoc/Readers/LaTeX.hs+4
src/Text/Pandoc/Readers/LaTeX.hs+4
@@ -1384,7 +1384,11 @@ inlineCommands = M.fromList $
13841384 <|> citation "citeauthor" AuthorInText False)
13851385 , ("nocite", mempty <$ (citation "nocite" NormalCitation False >>=
13861386 addMeta "nocite"))
1387+ -- hyperlink: for now, we just preserve contents.
1388+ -- we might add the actual links, but we need to avoid clashes
1389+ -- with ids produced by label.
13871390 , ("hypertarget", braced >> tok)
1391+ , ("hyperlink", braced >> tok)
13881392 -- glossaries package
13891393 , ("gls", doAcronym "short")
13901394 , ("Gls", doAcronym "short")