cmark

My personal build of CMark ✏️

Commit
06fcdb7592a6106daa52dfe4830373ed735e4053
Parent
903f3ca65d186f660ac934d228034c4f3b993f2f
Author
John MacFarlane <jgm@berkeley.edu>
Date

HTML writer: fixed bug in detection of fenced code blocks.

Diffstat

1 file changed, 1 insertion, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/html.c 3 1 2
diff --git a/src/html.c b/src/html.c
@@ -137,8 +137,7 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
 	case CMARK_NODE_CODE_BLOCK:
 		cr(html);
 
-		if (&node->as.code.fence_length == 0
-		    || node->as.code.info.len == 0) {
+		if (!node->as.code.fenced || node->as.code.info.len == 0) {
 			cmark_strbuf_puts(html, "<pre><code>");
 		}
 		else {