cmark

My personal build of CMark ✏️

Commit
e22f3b777dd53e587db6dba76e86bf3276ad619f
Parent
2ee9df94fc9543a878e4c5a4593154913a74eb07
Author
John MacFarlane <jgm@berkeley.edu>
Date

C html renderer: ensure newline before hr or raw html block.

Diffstat

1 file changed, 2 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/html/html.c 2 2 0
diff --git a/src/html/html.c b/src/html/html.c
@@ -181,10 +181,12 @@ static void node_to_html(strbuf *html, cmark_node *node)
 		}
 
 		case NODE_HTML:
+			cr(html);
 			strbuf_put(html, cur->string_content.ptr, cur->string_content.size);
 			break;
 
 		case NODE_HRULE:
+			cr(html);
 			strbuf_puts(html, "<hr />\n");
 			break;