blob: b20b84b2cc8cb1c1d7ff358b852ad7271bcf38c8 (
plain)
- #include <stdlib.h>
- #include <assert.h>
- #include <stdio.h>
- #include "node.h"
- #include "references.h"
- #include "html/houdini.h"
- #include "cmark.h"
- #include "buffer.h"
- unsigned char *cmark_markdown_to_html(unsigned char *text, int len)
- {
- cmark_node *blocks;
- unsigned char *result;
- blocks = cmark_parse_document(text, len);
- result = cmark_render_html(blocks);
- cmark_free_nodes(blocks);
- return result;
- }
|