From a71423f6ee1b77d9f79d42599ea00b4ca99f5da0 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
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/html/html.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src/html')

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