summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Bd
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-04-18 20:40:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-04-18 20:40:10 +0000
commit5384b791222a1766744c362648729972e9a73844 (patch)
treedca05e2a4298314f19ad80030bdf5c16930950f7 /regress/mdoc/Bd
parentd8e6af26addbffe69059f3b4e263563cdc3f3b53 (diff)
downloadmandoc-5384b791222a1766744c362648729972e9a73844.tar.gz
When a .Tg is attached to a paragraph, attach the permalink
to the first word, or the first few words if they are short.
Diffstat (limited to 'regress/mdoc/Bd')
-rw-r--r--regress/mdoc/Bd/paragraph.out_html8
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/mdoc/Bd/paragraph.out_html b/regress/mdoc/Bd/paragraph.out_html
index f537335e..07a02769 100644
--- a/regress/mdoc/Bd/paragraph.out_html
+++ b/regress/mdoc/Bd/paragraph.out_html
@@ -1,6 +1,8 @@
-<p class="Pp" id="npara">normal paragraph</p>
+<p class="Pp" id="npara"><a class="permalink" href="#npara">normal</a>
+ paragraph</p>
<div class="Bd Pp" id="filled">filled display
-<p class="Pp" id="fpara">paragraph in display</p>
+<p class="Pp" id="fpara"><a class="permalink" href="#fpara">paragraph</a> in
+ display</p>
</div>
back to normal
<p class="Pp">another paragraph</p>
@@ -9,7 +11,7 @@ back to normal
unfilled
display
<mark id="upara"></mark>
-unfilled
+<a class="permalink" href="#upara">unfilled</a>
paragraph
</pre>
</div>