]> git.cameronkatri.com Git - mandoc.git/commit
While the HTML standard allows multiple <h1> elements in the same
authorIngo Schwarze <schwarze@openbsd.org>
Wed, 6 Jul 2022 14:34:59 +0000 (14:34 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Wed, 6 Jul 2022 14:34:59 +0000 (14:34 +0000)
commitd87fd9991b3f2008e4d248991fdf4d47390c4704
tree2100b72c90aee9cbaa45f9e2b5adc7235674ee67
parent8bee07458b84a3c97d980af8bc26fbd8d9b72eab
While the HTML standard allows multiple <h1> elements in the same
document, <h1> is intended for top level headers, and most of the
sections in a manual page can hardly be considered top-level.
It is more usual to use <h1> only for the main title of the document
of for the site name.

Consequently, move .Sh/.SH from <h1> to <h2> and .Ss/.SS from <h2>
to <h3>, freeing <h1> for use by header.html in man.cgi(8).

Discussed with Anna Vyalkova <cyber at sysrq dot in>.
14 files changed:
html.c
html.h
man_html.c
mandoc.css
mdoc_html.c
regress/man/IP/literal.out_html
regress/man/SH/paragraph.out_html
regress/man/SS/paragraph.out_html
regress/man/TP/vert.out_html
regress/mdoc/Er/tag.out_html
regress/mdoc/Rs/paragraph.out_html
regress/mdoc/Sh/paragraph.out_html
regress/mdoc/Sh/tag.out_html
regress/mdoc/Tg/warn.out_html