diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-12 23:29:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-13 20:19:41 -0800 |
commit | 59cc3c9323dc0b7aa1fd5817e12884ef925461d4 (patch) | |
tree | aae78b1d3ed29f4b5f3a831d9e8c09b0d5d9580f /man | |
parent | a3030f985a973b3b835645313fdad1a8a72ff432 (diff) |
Added cmark_render_man (man page writer).
cmark: Replaced `--man` and `--ast` with generic `--to` option.
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/cmark.1 | 7 | ||||
-rw-r--r-- | man/man3/cmark.3 | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/man/man1/cmark.1 b/man/man1/cmark.1 index 4118520..2d5af77 100644 --- a/man/man1/cmark.1 +++ b/man/man1/cmark.1 @@ -13,14 +13,15 @@ acts as a pipe, reading from \fRstdin\fR or from the specified files and writing to \fRstdout\fR. -It converts Markdown formatted plain text to HTML, using the conventions +It converts Markdown formatted plain text to HTML (or groff man or +an abstract representation of the AST), using the conventions described in the CommonMark spec. If multiple files are specified, the contents of the files are simply concatenated before parsing. .SH "OPTIONS" .TP 12n -\-\--ast -Print an abstract syntax tree instead of HTML. +\-\-to, \-t \f[I]FORMAT\f[] +Specify output format (\f[C]html\f[], \f[C]man\f[], \f[C]ast\f[]). .TP 12n \-\-help Print usage information. diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index 62d89e2..5f6d296 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -292,6 +292,10 @@ typedef enum { .PP +\fIchar *\fR \fBcmark_render_man\fR(\fIcmark_node *root\fR) + +.PP + .SH AUTHORS John MacFarlane, Vicent Marti, Kārlis Gaņģis, Nick Wellnhofer. |