| 1 |
.TH MARKDOWN_PY 1 |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
markdown_py \- a Python implementation of John Gruber's Markdown. |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.B markdown_py [\fIoptions\fR] [\fIINPUT_FILE\fR] |
| 8 |
.RS 0 |
| 9 |
(STDIN is assumed if no INPUT_FILE is given) |
| 10 |
|
| 11 |
.SH DESCRIPTION |
| 12 |
Command-line Markdown compiler based on python\-markdown module, with extensions support. |
| 13 |
|
| 14 |
\fBDeprecated!\fR Use \fBpython3 \-m markdown\fR instead, which accepts the same options. |
| 15 |
|
| 16 |
.SH OPTIONS |
| 17 |
.TP |
| 18 |
\fB\-\-version\fR |
| 19 |
Show program's version number and exit. |
| 20 |
.TP |
| 21 |
\fB\-h\fR, \fB\-\-help\fR |
| 22 |
Show the help message and exit. |
| 23 |
.TP |
| 24 |
\fB\-f \fIOUTPUT_FILE\fR, \fB\-\-file=\fIOUTPUT_FILE\fR |
| 25 |
Write output to OUTPUT_FILE. Defaults to STDOUT. |
| 26 |
.TP |
| 27 |
\fB\-e \fIENCODING\fR, \fB\-\-encoding=\fIENCODING\fR |
| 28 |
Encoding for input and output files. |
| 29 |
.TP |
| 30 |
\fB\-o \fIOUTPUT_FORMAT\fR, \fB\-\-output_format=\fIOUTPUT_FORMAT\fR |
| 31 |
Use output format 'xhtml' (default) or 'html'. |
| 32 |
.TP |
| 33 |
\fB\-n\fR, \fB\-\-no_lazy_ol\fR |
| 34 |
Observe number of first item of ordered lists. |
| 35 |
.TP |
| 36 |
\fB\-x \fIEXTENSION\fR, \fB\-\-extension=\fIEXTENSION\fR |
| 37 |
Load extension EXTENSION. |
| 38 |
.TP |
| 39 |
\fB\-c \fICONFIG_FILE\fR, \fB\-\-extension_configs=\fICONFIG_FILE\fR |
| 40 |
Read extension configurations from CONFIG_FILE. |
| 41 |
CONFIG_FILE must be of JSON or YAML format. YAML format requires python3-yaml |
| 42 |
package to be installed. The parsed JSON or YAML must result in a Python |
| 43 |
dictionary which would be accepted by the 'extension_configs' keyword on |
| 44 |
the markdown.Markdown class. The extensions must also be loaded with the |
| 45 |
\-\-extension option. |
| 46 |
.TP |
| 47 |
\fB\-q\fR, \fB\-\-quiet\fR |
| 48 |
Suppress all warnings. |
| 49 |
.TP |
| 50 |
\fB\-v\fR, \fB\-\-verbose\fR |
| 51 |
Print all warnings. |
| 52 |
.TP |
| 53 |
\fB\-\-noisy\fR |
| 54 |
Print debug messages. |