code: function isOpeningHeading(node, depth, expression) {
    return (
      depth === null &&
      node &&
      node.type === HEADING &&
      expression.test(toString(node))
    )
  }
docs: Check if `node` is the main heading.