summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
Diffstat (limited to 'man')
-rw-r--r--man/man1/cmark.14
-rw-r--r--man/man3/cmark.38
2 files changed, 6 insertions, 6 deletions
diff --git a/man/man1/cmark.1 b/man/man1/cmark.1
index 8dd9165..9ea8d4c 100644
--- a/man/man1/cmark.1
+++ b/man/man1/cmark.1
@@ -1,4 +1,4 @@
-.TH "cmark" "1" "November 30, 2014" "LOCAL" "General Commands Manual"
+.TH "cmark" "1" "March 24, 2016" "LOCAL" "General Commands Manual"
.SH "NAME"
\fBcmark\fR
\- convert CommonMark formatted text to HTML
@@ -23,7 +23,7 @@ Specify output format (\f[C]html\f[], \f[C]man\f[], \f[C]xml\f[],
.B \-\-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.
+commonmark, latex, and man renderers.
.TP 12n
.B \-\-sourcepos
Include source position attribute.
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3
index bffe73d..283b9cc 100644
--- a/man/man3/cmark.3
+++ b/man/man3/cmark.3
@@ -1,4 +1,4 @@
-.TH cmark 3 "February 02, 2016" "LOCAL" "Library Functions Manual"
+.TH cmark 3 "March 24, 2016" "LOCAL" "Library Functions Manual"
.SH
NAME
.PP
@@ -14,7 +14,7 @@ Simple Interface
.PP
Convert \f[I]text\f[] (assumed to be a UTF\-8 encoded string with length
-\f[I]len\f[] from CommonMark Markdown to HTML, returning a
+\f[I]len\f[]) from CommonMark Markdown to HTML, returning a
null\-terminated, UTF\-8\-encoded string.
.SS
@@ -109,7 +109,7 @@ to assign.
\fIvoid\f[] \fBcmark_node_free\f[](\fIcmark_node *node\f[])
.PP
-Frees the memory allocated for a node.
+Frees the memory allocated for a node and any children.
.SS
Tree Traversal
@@ -543,7 +543,7 @@ Streaming interface:
.nf
\f[C]
cmark_parser *parser = cmark_parser_new(CMARK_OPT_DEFAULT);
-FILE *fp = fopen("myfile.md", "r");
+FILE *fp = fopen("myfile.md", "rb");
while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
cmark_parser_feed(parser, buffer, bytes);
if (bytes < sizeof(buffer)) {