LaTeX writer: Don't escape _ in hyperref identifiers.
commit14616931596ffd366f3a86930bc0d2b49c825b98
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateSat 15 Sep 2012, 20:50 (14 years ago)
parentd9e34ce
src/Text/Pandoc/Writers/LaTeX.hs+1−1
@@ -571,7 +571,7 @@ inlineToLaTeX (LineBreak) = return "\\\\"
571571inlineToLaTeX Space = return space
572572inlineToLaTeX (Link txt ('#':ident, _)) = do
573573 contents <- inlineListToLaTeX txt
574− ident' <- stringToLaTeX False ident
574+ ident' <- stringToLaTeX True ident
575575 return $ text "\\hyperref" <> brackets (text ident') <> braces contents
576576inlineToLaTeX (Link txt (src, _)) =
577577 case txt of