summaryrefslogtreecommitdiff
path: root/src
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 /src
parentcc78b3e9e2c05201469356730c60f6bf3d073232 (diff)
Added options parameter to cmark_markdown_to_html.
Diffstat (limited to 'src')
-rw-r--r--src/cmark.c6
-rw-r--r--src/cmark.h2
2 files changed, 4 insertions, 4 deletions
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;
diff --git a/src/cmark.h b/src/cmark.h
index 3c68ac6..942c06c 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -24,7 +24,7 @@ extern "C" {
* UTF-8-encoded string.
*/
CMARK_EXPORT
-char *cmark_markdown_to_html(const char *text, int len);
+char *cmark_markdown_to_html(const char *text, int len, int options);
/** ## Node Structure
*/