Convert MDOC to T2T

Turn MDOC files into txt2tags. A txt2tags document with headings, lists, tables and links; footnotes are written in parentheses where they are marked, block quotes become plain paragraphs, a table's header row becomes an ordinary row, and a line that starts with a percent sign is a comment that txt2tags hides.

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 manual page as a txt2tags document.Headings, lists, tables and links carry over as txt2tags markup.

  1. What you get

    One T2T file with the structure of the manual page. Sections become headings, and tag lists become definition lists. Flags, arguments and command names are written as code.

    Column lists become tables. Their first row is an ordinary row, not a header.

    Sentences that macros such as .Ex -std stand for are written out in full.

  2. What changes

    Footnotes are written in parentheses where they are marked. Block quotes become plain paragraphs. A table's header row becomes an ordinary row.

    A line that starts with a percent sign is a comment in txt2tags, so txt2tags hides it. The section number is dropped.

MDOC and T2T.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 · T2T

txt2tags

txt2tags documents, plain text with light markup that the txt2tags tool turns into many formats.

Extensions
.t2t
MIME type
text/x-txt2tags
Kind
Text and data

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

terminal
$ cv convert report.mdoc report.t2t
$ cv convert report.mdoc report.t2t

Questions.What people ask about MDOC to T2T.

01OF 04

Yes. Sections become headings, tag lists become definition lists, and column lists become tables. Links are kept as well.

Yes. Flags, arguments and command names are written as code in the T2T file.

No. The first row of a table is an ordinary row, because the header row does not stay a header.

One file. The whole manual page becomes a single T2T document. For other pairs, see every MDOC conversion.

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