Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[manpage] don't emit OSC 8 hyperlinks for anchor references (#12108)
A reference like ":ref:`Some other page <some-other-page>`" results in a refuri "#some-other-page". This does not seem useful to readers of the man page. It is especially unhelpful when using a terminals that implements a hint mode for selecting links -- the extra links add noise, making it harder to select the interesting ones. While at it, relax the restriction that "man_show_urls" is limited to mailto/http/ftp URLs; I don't see why other protocols shouldn't be allowed. Follow up to #12108 I also confirmed that even with docutils 0.21 we do not need to override depart_reference because we already skip reference nodes.
- Loading branch information