aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-01 10:57:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-01 10:57:17 +0000
commitd3f52b2d9dc5815b73119982013465a10140e182 (patch)
tree7e7fd84dc23986618089c3c295a5e1f89df55a97 /regress/mdoc
parent122f08c3f3756fc23b3e070a0322f7250bddbfbf (diff)
downloadmandoc-d3f52b2d9dc5815b73119982013465a10140e182.tar.gz
mandoc-d3f52b2d9dc5815b73119982013465a10140e182.tar.zst
mandoc-d3f52b2d9dc5815b73119982013465a10140e182.zip
Wrap .Sh/.SH sections and .Ss/.SS subsections in HTML <section> elements
as recommended for accessibility by the HTML 5 standard. Triggered by a similar, but slightly different suggestion from Laura Morales <lauretas at mail dot com>.
Diffstat (limited to 'regress/mdoc')
-rw-r--r--regress/mdoc/Rs/paragraph.out_html2
-rw-r--r--regress/mdoc/Sh/paragraph.out_html4
2 files changed, 6 insertions, 0 deletions
diff --git a/regress/mdoc/Rs/paragraph.out_html b/regress/mdoc/Rs/paragraph.out_html
index ab2575e5..251d0d0c 100644
--- a/regress/mdoc/Rs/paragraph.out_html
+++ b/regress/mdoc/Rs/paragraph.out_html
@@ -4,6 +4,8 @@ initial reference: <cite class="Rs"><span class="RsA">author name</span>,
<i class="RsB">book title</i>.</cite>
<p class="Pp">in a paragraph: <cite class="Rs"><span class="RsA">another
author</span>, <i class="RsB">another book</i>.</cite></p>
+</section>
+<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
initial reference:
diff --git a/regress/mdoc/Sh/paragraph.out_html b/regress/mdoc/Sh/paragraph.out_html
index 7d4f0d40..3b5154de 100644
--- a/regress/mdoc/Sh/paragraph.out_html
+++ b/regress/mdoc/Sh/paragraph.out_html
@@ -1,7 +1,11 @@
BEGINTEST
<p class="Pp">descriptive text</p>
+<section class="Ss">
<h2 class="Ss" id="Subsection"><a class="permalink" href="#Subsection">Subsection</a></h2>
initial subsection text
<p class="Pp">subsection paragraph</p>
+</section>
+</section>
+<section class="Sh">
<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
ENDTEST