cmark

My personal build of CMark ✏️

File Name Size Mode
cplusplus.cpp 351B -rw-r--r--
 1 #include <cstdlib>
 2 
 3 #include "cmark.h"
 4 #include "cplusplus.h"
 5 #include "harness.h"
 6 
 7 void
 8 test_cplusplus(test_batch_runner *runner)
 9 {
10     static const char md[] = "paragraph\n";
11     char *html = cmark_markdown_to_html(md, sizeof(md) - 1, CMARK_OPT_DEFAULT);
12     STR_EQ(runner, html, "<p>paragraph</p>\n", "libcmark works with C++");
13     free(html);
14 }
15