summaryrefslogtreecommitdiff
path: root/js/lib/html-renderer.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-22 21:32:21 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-22 21:32:21 -0800
commita71423f6ee1b77d9f79d42599ea00b4ca99f5da0 (patch)
treeb6007b211ffbedf996a7416dbbc26f6d33006913 /js/lib/html-renderer.js
parentacac9428faa1c3193fb44b3fb0e2dd3cbdaa4ac9 (diff)
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.
Diffstat (limited to 'js/lib/html-renderer.js')
-rw-r--r--js/lib/html-renderer.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/lib/html-renderer.js b/js/lib/html-renderer.js
index e55b103..faf5231 100644
--- a/js/lib/html-renderer.js
+++ b/js/lib/html-renderer.js
@@ -103,8 +103,7 @@ var renderBlock = function(block, in_tight_list) {
return inTags(tag, attr, this.innersep +
this.renderBlocks(block.children, block.tight) +
this.innersep);
- case 'ATXHeader':
- case 'SetextHeader':
+ case 'Header':
tag = 'h' + block.level;
return inTags(tag, [], this.renderInlines(block.inline_content));
case 'IndentedCode':