Convert MDOC to TXT

Turn MDOC files into TXT. Plain text opening with the title and date, with each section heading and paragraph on its own line, tag lists indented below their tag, and displays and column lists kept; font changes are dropped.

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 plain text.The title and date come first, then the sections in order.

  1. What you get

    One TXT file. It opens with the title and the date of the manual page. Each section heading and each paragraph sits on its own line.

    Tag lists keep their shape: the description is indented below its tag. Displays and column lists are kept as they were written.

  2. What it leaves behind

    Font changes are dropped. Text that was bold, italic or marked up with a semantic macro comes out as plain characters, with no formatting at all.

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

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data

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

terminal
$ cv convert report.mdoc report.txt
$ cv convert report.mdoc report.txt

Questions.What people ask about MDOC to TXT.

01OF 04

It starts with the title and the date of the manual page. The sections follow.

Yes. Tag lists are indented below their tag, and column lists are kept. Displays are kept too.

No. Font changes are dropped, so the text is plain.

See every MDOC conversion for the other formats a manual page can become. To work with the text afterward, you can merge TXT files.

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