You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[manpage] don't emit OSC 8 hyperlinks for anchor references (sphinx-doc#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 terminal
that implements a hint mode for selecting links -- the extra links
add noise, making it harder to select the interesting ones.
Don't emit OSC 8 for those.
Also don't emit it for URLs that might be unsafe
(see sphinx-doc#12260 (comment))
I don't know one that would be unsafe but I'm sure there are some.
OTOH, "man_show_urls" doesn't seem unsafe because it shows the exact
URL that will be opened, so enable that for all URLs (except for
relative ones).
Follow up to sphinx-doc#12108
I also confirmed that even with docutils 0.21 we do not need to
override depart_reference because we already skip reference nodes.
0 commit comments