From 4570eb2bff2e1b71fa5b6408abbc69c98ff5ff24 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 22 Nov 2014 22:39:26 -0800 Subject: Revert "Remove distinction btw atx and setext header in AST." This reverts commit a71423f6ee1b77d9f79d42599ea00b4ca99f5da0. Not quite sure about this change, so reverting for now. Note that we still have a distinction between fenced and indented code blocks in the AST. These two distinctions seem to stand or fall together. --- src/print.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/print.c') diff --git a/src/print.c b/src/print.c index 2064276..b1bab4b 100644 --- a/src/print.c +++ b/src/print.c @@ -132,7 +132,11 @@ static void print_blocks(cmark_node* b, int indent) } print_blocks(b->first_child, indent + 2); break; - case NODE_HEADER: + 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: printf("setext_header (level=%d)\n", b->as.header.level); print_inlines(b->first_child, indent + 2); break; -- cgit v1.2.3