diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-28 22:31:34 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-28 22:31:34 -0800 |
commit | 0b746507aad92a8f7ec942e06889df62ec441f54 (patch) | |
tree | 2361110c718eb93363cce2c517fe643195ec0524 /src/cmark.c | |
parent | feb119992a6fbea3cedead04b1941b1fe114990b (diff) |
Removed cmark_free_nodes from public API.
Replace it with static S_free_nodes.
Diffstat (limited to 'src/cmark.c')
-rw-r--r-- | src/cmark.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmark.c b/src/cmark.c index 945e392..140a14c 100644 --- a/src/cmark.c +++ b/src/cmark.c @@ -8,13 +8,13 @@ char *cmark_markdown_to_html(const char *text, int len) { - cmark_node *blocks; + cmark_node *doc; char *result; - blocks = cmark_parse_document(text, len); + doc = cmark_parse_document(text, len); - result = cmark_render_html(blocks); - cmark_free_nodes(blocks); + result = cmark_render_html(doc); + cmark_node_free(doc); return result; } |