summaryrefslogtreecommitdiff
path: root/man/man3/cmark.3
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-15 16:41:59 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-15 16:41:59 -0700
commit294880e0118e27c97f26beaaa81a79de23f80727 (patch)
treed71a10d5758926e7fd6126976ef496c7645cf07c /man/man3/cmark.3
parentcc78b3e9e2c05201469356730c60f6bf3d073232 (diff)
Added options parameter to cmark_markdown_to_html.
Diffstat (limited to 'man/man3/cmark.3')
-rw-r--r--man/man3/cmark.39
1 files changed, 5 insertions, 4 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3
index 111d3b8..2a55774 100644
--- a/man/man3/cmark.3
+++ b/man/man3/cmark.3
@@ -1,4 +1,4 @@
-.TH cmark 3 "March 09, 2015" "LOCAL" "Library Functions Manual"
+.TH cmark 3 "March 15, 2015" "LOCAL" "Library Functions Manual"
.SH
NAME
.PP
@@ -10,7 +10,7 @@ DESCRIPTION
Simple Interface
.PP
-\fIchar *\f[] \fBcmark_markdown_to_html\f[](\fIconst char *text\f[], \fIint len\f[])
+\fIchar *\f[] \fBcmark_markdown_to_html\f[](\fIconst char *text\f[], \fIint len\f[], \fIint options\f[])
.PP
Convert \f[I]text\f[] (assumed to be a UTF\-8 encoded string with length
@@ -391,7 +391,8 @@ Simple interface:
.IP
.nf
\f[C]
-cmark_node *document = cmark_parse_document("Hello *world*", 12);
+cmark_node *document = cmark_parse_document("Hello *world*", 12,
+ CMARK_OPT_DEFAULT);
\f[]
.fi
.PP
@@ -399,7 +400,7 @@ Streaming interface:
.IP
.nf
\f[C]
-cmark_parser *parser = cmark_parser_new();
+cmark_parser *parser = cmark_parser_new(CMARK_OPT_DEFAULT);
FILE *fp = fopen("myfile.md", "r");
while ((bytes = fread(buffer, 1, sizeof(buffer), fp)) > 0) {
cmark_parser_feed(parser, buffer, bytes);