From 294880e0118e27c97f26beaaa81a79de23f80727 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 15 Mar 2015 16:41:59 -0700 Subject: Added options parameter to cmark_markdown_to_html. --- man/man3/cmark.3 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'man/man3') 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); -- cgit v1.2.3