Convert MDOC to RST
Turn MDOC files into reStructuredText. A reStructuredText document with headings, lists, tables, links and footnotes.
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 reStructuredText page from a man page.Headings, lists, tables, links and footnotes carry over.
What you get
One RST file with the structure of the manual page. Sections become headings, and links and footnotes are kept.
Tag lists become definition lists. Flags, arguments and command names are written as code.
What changes
Column lists become tables whose first row is not a header. The section number is dropped.
Macros that stand for whole sentences, such as .Ex -std, are written out as those sentences in the text.
MDOC and RST.What each format is.
The formats
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
reStructuredText
reStructuredText, the markup of Python documentation and Sphinx.
- Extensions
- .rst
- MIME type
- text
/x -rst - Kind
- Text and data
In your code.The same MDOC to RST conversion through the API, for your app or your agent.
$ cv convert report.mdoc report.rst$ cv convert report.mdoc report.rstQuestions.What people ask about MDOC to RST.
Yes. Sections become headings in the RST file.
Flags, arguments and command names are written as code.
No. The section number is dropped.
No. The conversion gives one file. To see other conversions, go to every MDOC conversion or every RST conversion.