summaryrefslogtreecommitdiff
path: root/src/cmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmark.c')
-rw-r--r--src/cmark.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmark.c b/src/cmark.c
index d64237f..8bbca03 100644
--- a/src/cmark.c
+++ b/src/cmark.c
@@ -30,6 +30,11 @@ static void *xrealloc(void *ptr, size_t size) {
cmark_mem DEFAULT_MEM_ALLOCATOR = {xcalloc, xrealloc, free};
+cmark_mem *cmark_get_default_mem_allocator() {
+ return &DEFAULT_MEM_ALLOCATOR;
+}
+
+
char *cmark_markdown_to_html(const char *text, size_t len, int options) {
cmark_node *doc;
char *result;