code: function detectList (node) {
    let lists = []
    if (node.children) {
      node.children.forEach(child => {
        if (child.name === 'list') {
          lists.push(child)
        } else {
          if (child.children && child.children.length > 0) {
            lists = lists.concat(detectList(child))
          }
        }
      })
    }
    return lists
  }
docs: ------------------------------------------------------------------------------ Helpers ------------------------------------------------------------------------------