From 573dd81575b821661fb4aaa6f8c68b513f889f07 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 21 Mar 2015 21:13:36 -0700 Subject: 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`. --- man/man1/cmark.1 | 5 +++++ man/man3/cmark.3 | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'man') 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. -- cgit v1.2.3