   @visitBLOCKQUOTE: (item, context) ->
     indent(context.listLevel) + '> ' + toMarkdown item.bodyHTML
 
-  @visitHEADING: (item, context) ->
+  @visitHEADER: (item, context) ->
     context.listIndex = 0
     context.listLevel = 0
-    context.headingLevel++
-    repeat('#', context.headingLevel) + ' ' + toMarkdown item.bodyHTML
+    context.headerLevel++
+    repeat('#', context.headerLevel) + ' ' + toMarkdown item.bodyHTML
 
-  @didVisitHEADING: (item, context) ->
-    context.headingLevel--
+  @didVisitHEADER: (item, context) ->
+    context.headerLevel--
 
 
   @visitORDERED: (item, context) ->

commonmark = require 'commonmark'
toMarkdown = require('to-markdown').toMarkdown

### Rewrite all of this to first generate CommonMark AST and then generate
HTML or Markdown from that.

    context =
      listIndex: 0
      listLevel: 0
      headerLevel: 0
    for each in outline.root.children
      @visiItem each, context, results
    results.join '\n\n'
