pdbtxt2html converts text converted from a Doc(4) file via txt2pdbdoc(1) to HTML. If no HTML filename is
given, the generated HTML is sent to standard output.
DocumentTitle
The first line of the file is used for the HTML document title.
Bookmarks
The last line of the file is examined and, if it contains a string enclosed between < and >, that is
taken to be the bookmark marker. The entire file is then scanned looking for lines beginning with it
(ignoring leading whitespace). These lines are converted to HTML headings.
The number of whitespace characters after the first bookmark marker is used for heading level 1. The
level of subsequent headings is set to the number of whitespace characters between the bookmark marker
and the bookmark text minus the number for the first bookmark plus one.
EmbeddedURLs
Valid URLs (according to RFC 1630) embedded in the text are turned into hyperlinks. The ftp, gopher,
http, https, mailto, news, telnet, and wais URLs are recognized.