From 615f055c320ff23a388f342af7ab5810d21f4fb8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 19 Dec 2015 23:27:15 -0800 Subject: Commonmark renderer: ensure html blocks surrounded by blanks. Otherwise we get failures of roundtrip tests. --- src/commonmark.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/commonmark.c b/src/commonmark.c index 635794c..7dabbc3 100644 --- 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: -- cgit v1.2.3