C / C++
Markdown libraries in C — the CommonMark reference implementation and an exceptionally fast alternative. Back to the overview.
cmark
The official CommonMark reference implementation — a C library and command-line tool.
referenceCommonMark
#include <cmark.h>
char *html = cmark_markdown_to_html(
"# Hello *world*", 15, CMARK_OPT_DEFAULT);
MD4C
An exceptionally fast, SAX-like C parser with CommonMark and GFM support.
fastGFM
#include "md4c-html.h"
/* Render via a callback that receives HTML chunks. */
md_html(input, input_size, process_output, userdata,
MD_DIALECT_COMMONMARK, 0);