.\" Generated by Mmark Markdown Processer - mmark.miek.nl .TH "MMARK" 1 "April 2019" "User Commands" "Mmark Markdown" .SH "NAME" .PP mmark \- generate XML, HTML or markdown from mmark markdown documents. .SH "SYNOPSIS" .PP \fBmmark\fP [\fBOPTIONS\fP] [\fIFILE...\fP] .SH "DESCRIPTION" .PP \fBMmark\fP is a powerful markdown processor written in Go, geared towards writing IETF documents. It is, however, \fIalso\fP suited for writing complete books and other technical documentation. .PP Mmark provides an advanced markdown dialect that processes file(s) to produce internet-drafts in XML RFC 7991 \[la]https://tools.ietf.org/html/rfc7991\[ra] format. Mmark can produce xml2rfc (aforementioned RFC 7991), HTML5 and manual pages. .PP The syntax is detailed at https://mmark.miek.nl/syntax \[la]https://mmark.miek.nl/syntax\[ra]. .PP Compared to other markdown variants mmark adds: .IP \(bu 4 (Extended) Title block to specify authors and IETF specific bits. .IP \(bu 4 (Special) sections for abstracts, prefaces or notes. .IP \(bu 4 Including other files with the option to specify line ranges, regular expressions and/or prefixing each line with a custom string. .IP \(bu 4 Document divisions: front matter, main matter and back matter. .IP \(bu 4 Captions for code, tables, quotes and subfigures. .IP \(bu 4 Asides for small notes. .IP \(bu 4 Figures and Subfigures that allow for grouping images into subfigures as well as giving a single image metadata (a link, attributes, etc.). .IP \(bu 4 Block Level Attributes that allow to specify attributes, classes and IDs for elements. .IP \(bu 4 Indices to mark an item (and/or a subitem) to be referenced in the document index. .IP \(bu 4 Citations and adding XML References (those used by the IETF). .IP \(bu 4 Cross references: short form of referencing a section in the document. .IP \(bu 4 Super- and Subscript. .IP \(bu 4 Callouts in code and text. .IP \(bu 4 BCP14 (RFC 2119) keyword detection. .SH "RFC 7991" .PP This is the XML format used by the RFC editor for accepting Internet-Drafts. .SH "HTML5" .PP The HTML5 renderer outputs HTML. .SH "MANUAL PAGES" .PP The man renderer outputs nroff that can be viewed via man(1). .SH "OPTIONS" .TP \fB-ast\fP print abstract syntax tree and exit. .TP \fB-css string\fP link to a CSS stylesheet (only used with -html). .TP \fB-fragment\fP don't create a full document. .TP \fB-head string\fP link to HTML to be included in head (only used with -html). .TP \fB-html\fP create HTML output. .TP \fB-man\fP output nroff (manual pages). .TP \fB-unsafe\fP allow includes from anywhere in the filesystem, otherwise they are only allowed \fIbelow\fP the current document. .TP \fB-index\fP generate an index at the end of the document (default true). .TP \fB-bibliography\fP generate a bibliography section after the back matter (default true), this \fIneeds\fP a \fB\fC{{backmatter}}\fR in the document. .TP \fB-version\fP show mmark's version. .SH "ALSO SEE" .PP RFC 7991 and (maybe) RFC 7749. The main site for Mmark is https://mmark.miek.nl \[la]https://mmark.miek.nl\[ra]. The syntax used by mmark is explained in the syntax page \[la]https://mmark.miek.nl/post/syntax/\[ra].