summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-06-15 18:05:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-06-15 18:05:18 +0000
commit8cf98f41d1fca734e5ff771e973ec9d9884ed7d6 (patch)
treef00e5012957b155f1d3b3cdef42eaa2815584275
parenta866877ca59a740a55f73674ae0fb779bb0faf47 (diff)
downloadmandoc-8cf98f41d1fca734e5ff771e973ec9d9884ed7d6.tar.gz
document -T html -O tag as implemented in main.c rev. 1.350
-rw-r--r--mandoc.117
1 files changed, 17 insertions, 0 deletions
diff --git a/mandoc.1 b/mandoc.1
index 5f10320e..743f0795 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -410,6 +410,23 @@ The file
is used for an external style-sheet.
This must be a valid absolute or
relative URI.
+.It Cm tag Ns Op = Ns Ar term
+Same syntax and semantics as for
+.Sx ASCII Output .
+This is implemented by passing a
+.Ic file://
+URI ending in a fragment identifier to the pager
+rather than passing merely a file name.
+When using this argument, use a pager supporting such URIs, for example
+.Bd -literal -offset 3n
+MANPAGER='lynx -force_html' man -T html -O tag=MANPAGER man
+MANPAGER='w3m -T text/html' man -T html -O tag=toc mandoc
+.Ed
+.Pp
+This argument does not work with
+.Xr more 1
+or
+.Xr less 1 .
.It Cm toc
If an input file contains at least two non-standard sections,
print a table of contents near the beginning of the output.