Convert MDOC to HTML

Turn MDOC files into HTML. A standalone page titled from the Dt line, with the sections as headings, tag lists as definition lists, flags, arguments and command names as code, displays as code blocks and column lists as tables; the section number is not shown.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop MDOC files on the dialor turn it to pick what to do

A web page made from a BSD manual.One standalone HTML page, titled from the Dt line.

  1. What you get

    A single HTML file that stands on its own as a page. Its title comes from the Dt line of the manual, and each section of the manual becomes a heading.

    Tag lists become definition lists. Column lists become tables, and displays become code blocks.

  2. How the text is marked up

    Flags, arguments and command names are set as code, so they stand out from the surrounding text.

    The section number is not shown on the page.

MDOC and HTML.What each format is.

The formats

From · MDOC

BSD mdoc Manual

Manual pages written in the semantic mdoc macros of BSD systems and macOS.

Extensions
.mdoc
MIME type
text/x-mdoc
Kind
Text and data
To · HTML

HTML

The markup of web pages. Text, links and structure, usually with CSS and images alongside.

Extensions
.html .htm
MIME type
text/html
Kind
Text and data

In your code.The same MDOC to HTML conversion through the API, for your app or your agent.

terminal
$ cv convert report.mdoc report.html
$ cv convert report.mdoc report.html

Questions.What people ask about MDOC to HTML.

01OF 04

From the Dt line of the manual page.

Each section becomes a heading on the page.

Tag lists become definition lists. Column lists become tables.

No. The section number is not shown. For more conversions, see every MDOC conversion or every HTML conversion.

More conversions.Other ways in and out of MDOC and HTML.