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/html/html.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/html/html.c') diff --git a/src/html/html.c b/src/html/html.c index e6971f8..0ce4443 100644 --- a/src/html/html.c +++ b/src/html/html.c @@ -149,7 +149,8 @@ static void node_to_html(strbuf *html, cmark_node *node) break; } - case NODE_HEADER: + case NODE_ATX_HEADER: + case NODE_SETEXT_HEADER: cr(html); start_header[2] = '0' + cur->as.header.level; strbuf_puts(html, start_header); @@ -315,7 +316,8 @@ finish_node(strbuf *html, cmark_node *node, bool tight) break; } - case NODE_HEADER: + case NODE_ATX_HEADER: + case NODE_SETEXT_HEADER: end_header[3] = '0' + node->as.header.level; strbuf_puts(html, end_header); break; -- cgit v1.2.3