summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-12-19 23:27:15 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-12-19 23:27:15 -0800
commit615f055c320ff23a388f342af7ab5810d21f4fb8 (patch)
tree0cf56f4b2a171bb4ca19d5fe5afb34ff7b0e469a
parentb8a916fbe14fa51abaeb325390a3a177a4561a71 (diff)
Commonmark renderer: ensure html blocks surrounded by blanks.
Otherwise we get failures of roundtrip tests.
-rw-r--r--src/commonmark.c2
1 files changed, 2 insertions, 0 deletions
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: