cmark

My personal build of CMark ✏️

Commit
aaa0048c0131848713226564a03ab9a4abb9ba44
Parent
ccc13fd3a007b92c3944af39a3834fa7d33bfe58
Author
John MacFarlane <jgm@berkeley.edu>
Date

Added to commonmark renderer test.

Diffstat

1 file changed, 3 insertions, 3 deletions

Status File Name N° Changes Insertions Deletions
Modified api_test/main.c 6 3 3
diff --git a/api_test/main.c b/api_test/main.c
@@ -601,7 +601,7 @@ static void render_latex(test_batch_runner *runner) {
 static void render_commonmark(test_batch_runner *runner) {
   char *commonmark;
 
-  static const char markdown[] = "\\- foo *bar* \\*bar\\*\n"
+  static const char markdown[] = "> \\- foo *bar* \\*bar\\*\n"
                                  "\n"
                                  "- Lorem ipsum dolor sit - amet,\n"
                                  "  consectetur adipiscing elit,\n"
@@ -612,7 +612,7 @@ static void render_commonmark(test_batch_runner *runner) {
 
   commonmark = cmark_render_commonmark(doc, CMARK_OPT_DEFAULT, 24);
   STR_EQ(runner, commonmark,
-                                 "\\- foo *bar* \\*bar\\*\n"
+                                 "> \\- foo *bar* \\*bar\\*\n"
                                  "\n"
                                  "* Lorem ipsum dolor sit\n"
                                  "  \\- amet, consectetur\n"
@@ -624,7 +624,7 @@ static void render_commonmark(test_batch_runner *runner) {
          "render document with wrapping");
   free(commonmark);
   commonmark = cmark_render_commonmark(doc, CMARK_OPT_DEFAULT, 0);
-  STR_EQ(runner, commonmark, "\\- foo *bar* \\*bar\\*\n"
+  STR_EQ(runner, commonmark, "> \\- foo *bar* \\*bar\\*\n"
                              "\n"
                              "* Lorem ipsum dolor sit - amet,\n"
                              "  consectetur adipiscing elit,\n"