cmark

My personal build of CMark ✏️

Commit
615f055c320ff23a388f342af7ab5810d21f4fb8
Parent
b8a916fbe14fa51abaeb325390a3a177a4561a71
Author
John MacFarlane <jgm@berkeley.edu>
Date

Commonmark renderer: ensure html blocks surrounded by blanks.

Otherwise we get failures of roundtrip tests.

Diffstat

1 file changed, 2 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/commonmark.c 2 2 0
diff --git a/src/commonmark.c b/src/commonmark.c
@@ -280,7 +280,9 @@ static int S_render_node(cmark_renderer *renderer, cmark_node *node,
     break;
 
   case CMARK_NODE_HTML:
+    BLANKLINE();
     OUT(cmark_node_get_literal(node), false, LITERAL);
+    BLANKLINE();
     break;
 
   case CMARK_NODE_CUSTOM_BLOCK: