@@ -570,6 +570,10 @@ inlineToLaTeX (RawInline "tex" str) = return $ text str
570570inlineToLaTeX (RawInline _ _) = return empty
571571inlineToLaTeX (LineBreak) = return "\\\\"
572572inlineToLaTeX Space = return space
573+inlineToLaTeX (Link txt ('#':ident, _)) = do
574+ contents <- inlineListToLaTeX txt
575+ ident' <- stringToLaTeX False ident
576+ return $ text "\\hyperref" <> brackets (text ident') <> braces contents
573577inlineToLaTeX (Link txt (src, _)) =
574578 case txt of
575579 [Code _ x] | x == src -> -- autolink