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. --- src/cmark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmark.c') diff --git a/src/cmark.c b/src/cmark.c index d6e9278..79ceabf 100644 --- a/src/cmark.c +++ b/src/cmark.c @@ -9,14 +9,14 @@ const int cmark_version = CMARK_VERSION; const char cmark_version_string[] = CMARK_VERSION_STRING; -char *cmark_markdown_to_html(const char *text, int len) +char *cmark_markdown_to_html(const char *text, int len, int options) { cmark_node *doc; char *result; - doc = cmark_parse_document(text, len, CMARK_OPT_DEFAULT); + doc = cmark_parse_document(text, len, options); - result = cmark_render_html(doc, CMARK_OPT_DEFAULT); + result = cmark_render_html(doc, options); cmark_node_free(doc); return result; -- cgit v1.2.3