code: function getCurrentHeader (tree) {
    const heading = []
    while (headIsH2(tree.children) === false && tree.children.length > 0) {
      heading.push(tree.children.shift())
    }
    return heading
  }
docs: ────────────────────────────────  private  ──────────────────────────────────