cmark

My personal build of CMark ✏️

Commit
b27230bb57db6aa0b6a33beeb0a976aa009647eb
Parent
a5a55657ad8c1da1e17eda8e0a321612e61c311e
Author
John MacFarlane <fiddlosopher@gmail.com>
Date

`print.c` - make `document` node implicit.

It doesn't add information and just increases the indent level of everything else.

Diffstat

1 file changed, 1 insertion, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified src/print.c 3 1 2
diff --git a/src/print.c b/src/print.c
@@ -107,8 +107,7 @@ static void print_blocks(cmark_node* b, int indent)
 
 		switch(b->type) {
 		case NODE_DOCUMENT:
-			printf("document\n");
-			print_blocks(b->first_child, indent + 2);
+			print_blocks(b->first_child, 0);
 			break;
 		case NODE_BLOCK_QUOTE:
 			printf("block_quote\n");