diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-03-21 21:13:36 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-03-21 21:30:39 -0700 |
commit | 573dd81575b821661fb4aaa6f8c68b513f889f07 (patch) | |
tree | b638bf7d789dc19bfd101caf887faecc4c1fbd78 /man | |
parent | b31224fbe2072b8e2328c9607e8587e79a7f307d (diff) |
CommonMark renderer: Added 'width' parameter.
This controls column width for hard wrapping. By default it is
0, which means that no wrapping will be done.
Added a width parameter in `cmark_render_commonmark`.
Diffstat (limited to 'man')
-rw-r--r-- | man/man1/cmark.1 | 5 | ||||
-rw-r--r-- | man/man3/cmark.3 | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/man/man1/cmark.1 b/man/man1/cmark.1 index 3db18da..6635be5 100644 --- a/man/man1/cmark.1 +++ b/man/man1/cmark.1 @@ -24,6 +24,11 @@ concatenated before parsing. Specify output format (\f[C]html\f[], \f[C]man\f[], \f[C]xml\f[], \f[C]commonmark\f[]). .TP 12n +\-\-width \f[I]WIDTH\f[] +Specify a column width to which to wrap the output. For no wrapping, use +the value 0 (the default). This option currently only affects the +commonmark renderer. +.TP 12n \-\-sourcepos Include source position attribute. .TP 12n diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index 9ebdaf9..5b68ecb 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -1,4 +1,4 @@ -.TH cmark 3 "March 18, 2015" "LOCAL" "Library Functions Manual" +.TH cmark 3 "March 21, 2015" "LOCAL" "Library Functions Manual" .SH NAME .PP @@ -474,7 +474,7 @@ to add an appropriate header and footer. Render a \f[I]node\f[] tree as a groff man page, without the header. .PP -\fIchar *\f[] \fBcmark_render_commonmark\f[](\fIcmark_node *root\f[], \fIint options\f[]) +\fIchar *\f[] \fBcmark_render_commonmark\f[](\fIcmark_node *root\f[], \fIint options\f[], \fIint width\f[]) .PP Render a \f[I]node\f[] tree as a commonmark document. |