Anchors on manpages

Andreas Perstinger andipersti at gmail.com
Wed May 1 06:39:26 UTC 2019


On 30.04.19 20:18, Florian Mayer wrote:
> I noticed that all the headings on FreeBSD manpages point to the anchor
> #end (e.g. clicking on EXAMPLES on the jemalloc manpage takes me to
> https://www.freebsd.org/cgi/man.cgi?query=jemalloc#end). It would be very
> convenient to be able to link to specific headings on a manpage.

You can actually link to the specific heading:
https://www.freebsd.org/cgi/man.cgi?query=jemalloc#EXAMPLES

When you click on EXAMPLES it takes you to the end of the page where all 
sections are listed. And clicking on a section there brings you back to 
that section in the manpage.

I agree that the current behaviour is confusing. IMHO it would be better 
to use the usual pilcrow (¶) permalink next to the section header text 
as seen in many other online documentation.

Bye, Andreas


More information about the freebsd-doc mailing list