From d21c7fee66d6737ae1262cfea01633d041499da2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 1 Mar 2017 21:05:29 +0100 Subject: LaTeX reader: don't drop contents of \hypertarget. --- src/Text/Pandoc/Readers/LaTeX.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Text/Pandoc') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 2836ff4cc..e7683fd1c 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -375,6 +375,8 @@ blockCommands = M.fromList $ -- includes , ("lstinputlisting", inputListing) , ("graphicspath", graphicsPath) + -- hyperlink + , ("hypertarget", braced >> grouped block) ] ++ map ignoreBlocks -- these commands will be ignored unless --parse-raw is specified, -- in which case they will appear as raw latex blocks @@ -645,6 +647,7 @@ inlineCommands = M.fromList $ <|> citation "citeauthor" AuthorInText False) , ("nocite", mempty <$ (citation "nocite" NormalCitation False >>= addMeta "nocite")) + , ("hypertarget", braced >> tok) ] ++ map ignoreInlines -- these commands will be ignored unless --parse-raw is specified, -- in which case they will appear as raw latex blocks: -- cgit v1.2.3