From a71423f6ee1b77d9f79d42599ea00b4ca99f5da0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 22 Nov 2014 21:32:21 -0800 Subject: Remove distinction btw atx and setext header in AST. Now we just have 'header' -- Setext and ATX are just two ways of forming these; it's not a semantic difference that should remain in the AST. --- src/print.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/print.c') diff --git a/src/print.c b/src/print.c index b1bab4b..2064276 100644 --- a/src/print.c +++ b/src/print.c @@ -132,11 +132,7 @@ static void print_blocks(cmark_node* b, int indent) } print_blocks(b->first_child, indent + 2); break; - case NODE_ATX_HEADER: - printf("atx_header (level=%d)\n", b->as.header.level); - print_inlines(b->first_child, indent + 2); - break; - case NODE_SETEXT_HEADER: + case NODE_HEADER: printf("setext_header (level=%d)\n", b->as.header.level); print_inlines(b->first_child, indent + 2); break; -- cgit v1.2.3