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

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.

  @visitBLOCKQUOTE: (item, context) ->
    indent(context.listLevel) + '> ' + toMarkdown item.bodyHTML

  @visitHEADER: (item, context) ->
    context.listIndex = 0
    context.listLevel = 0
    context.headerLevel++
    repeat('#', context.headerLevel) + ' ' + toMarkdown item.bodyHTML

  @didVisitHEADER: (item, context) ->
    context.headerLevel--


  @visitORDERED: (item, context) ->
