cmark

My personal build of CMark ✏️

Commit
a389902278feefde988935353acb1a52d978df9b
Parent
d30371d6871981f369eafb30fb1a7e82df7139eb
Author
John MacFarlane <jgm@berkeley.edu>
Date

Fixed string representations of CUSTOM_BLOCK, CUSTOM_INLINE.

The old versions raw_inline and raw_block were being used, and this led to incorrect xml output.

Diffstat

1 file changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/node.c 4 2 2
diff --git a/src/node.c b/src/node.c
@@ -171,7 +171,7 @@ const char *cmark_node_get_type_string(cmark_node *node) {
   case CMARK_NODE_HTML_BLOCK:
     return "html_block";
   case CMARK_NODE_CUSTOM_BLOCK:
-    return "raw_block";
+    return "custom_block";
   case CMARK_NODE_PARAGRAPH:
     return "paragraph";
   case CMARK_NODE_HEADING:
@@ -189,7 +189,7 @@ const char *cmark_node_get_type_string(cmark_node *node) {
   case CMARK_NODE_HTML_INLINE:
     return "html_inline";
   case CMARK_NODE_CUSTOM_INLINE:
-    return "raw_inline";
+    return "custom_inline";
   case CMARK_NODE_EMPH:
     return "emph";
   case CMARK_NODE_STRONG: