diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-02-15 18:26:35 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-02-15 18:26:35 -0800 |
commit | 376f81ab8aa017ab01040e10d393d7682674562d (patch) | |
tree | c6a9c8982f76df9afcc42f3822e339701a08f3c6 /api_test/main.c | |
parent | 982ba5a528111dbf647e90f412498e315fcf432c (diff) |
Added options parameter to cmark_parse_document, cmark_parse_file.
Also to some non-exported functions in blocks and inlines.
Diffstat (limited to 'api_test/main.c')
-rw-r--r-- | api_test/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/api_test/main.c b/api_test/main.c index d341246..d42cbaf 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -122,7 +122,7 @@ accessors(test_batch_runner *runner) "\n" "[link](url 'title')\n"; - cmark_node *doc = cmark_parse_document(markdown, sizeof(markdown) - 1); + cmark_node *doc = cmark_parse_document(markdown, sizeof(markdown) - 1, CMARK_OPT_DEFAULT); // Getters @@ -308,7 +308,7 @@ node_check(test_batch_runner *runner) { static void iterator(test_batch_runner *runner) { - cmark_node *doc = cmark_parse_document("> a *b*\n\nc", 10); + cmark_node *doc = cmark_parse_document("> a *b*\n\nc", 10, CMARK_OPT_DEFAULT); int parnodes = 0; cmark_event_type ev_type; cmark_iter *iter = cmark_iter_new(doc); @@ -339,7 +339,8 @@ iterator_delete(test_batch_runner *runner) { "\n" "* item1\n" "* item2\n"; - cmark_node *doc = cmark_parse_document(md, sizeof(md) - 1); + cmark_node *doc = cmark_parse_document(md, sizeof(md) - 1, + CMARK_OPT_DEFAULT); cmark_iter *iter = cmark_iter_new(doc); cmark_event_type ev_type; @@ -544,7 +545,8 @@ render_html(test_batch_runner *runner) "foo *bar*\n" "\n" "paragraph 2\n"; - cmark_node *doc = cmark_parse_document(markdown, sizeof(markdown) - 1); + cmark_node *doc = cmark_parse_document(markdown, sizeof(markdown) - 1, + CMARK_OPT_DEFAULT); cmark_node *paragraph = cmark_node_first_child(doc); html = cmark_render_html(paragraph, CMARK_OPT_DEFAULT); |