git.iko.soy/typeable/pandoc
on master help sign in
Man writer: omit internal links.

That is, just print the link text without the url. Closes #4136.

commit544494d0e234e899a45f02b185cf5a448787f786 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 9 Dec 2017, 14:09 (9 years ago) parentbd1713a
1 file changed+2
src/Text/Pandoc/Writers/Man.hs+2
src/Text/Pandoc/Writers/Man.hs+2
@@ -373,6 +373,8 @@ inlineToMan _ LineBreak = return $
373373 cr <> text ".PD 0" $$ text ".P" $$ text ".PD" <> cr
374374inlineToMan _ SoftBreak = return space
375375inlineToMan _ Space = return space
376+inlineToMan opts (Link _ txt ('#':_, _)) =
377+ inlineListToMan opts txt -- skip internal links
376378inlineToMan opts (Link _ txt (src, _)) = do
377379 linktext <- inlineListToMan opts txt
378380 let srcSuffix = fromMaybe src (stripPrefix "mailto:" src)