summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-21 21:13:36 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-21 21:30:39 -0700
commit573dd81575b821661fb4aaa6f8c68b513f889f07 (patch)
treeb638bf7d789dc19bfd101caf887faecc4c1fbd78 /man
parentb31224fbe2072b8e2328c9607e8587e79a7f307d (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.15
-rw-r--r--man/man3/cmark.34
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.