diff options
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; } |