summaryrefslogtreecommitdiff
path: root/src/cmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmark.c')
-rw-r--r--src/cmark.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmark.c b/src/cmark.c
index 85e1adb..96b3080 100644
--- a/src/cmark.c
+++ b/src/cmark.c
@@ -11,17 +11,13 @@
unsigned char *cmark_markdown_to_html(unsigned char *text, int len)
{
node_block *blocks;
- strbuf htmlbuf = GH_BUF_INIT;
unsigned char *result;
blocks = cmark_parse_document(text, len);
- cmark_render_html(&htmlbuf, blocks);
+ result = cmark_render_html(blocks);
cmark_free_blocks(blocks);
- result = strbuf_detach(&htmlbuf);
- strbuf_free(&htmlbuf);
-
return result;
}