in beta/scripts/headingIDHelpers/validateHeadingIDs.js [53:66]
async function main(paths) {
  paths = paths.length === 0 ? ['src/pages'] : paths;
  const files = paths.map((path) => [...walk(path)]).flat();
  files.forEach((file) => {
    if (!(file.endsWith('.md') || file.endsWith('.mdx'))) {
      return;
    }
    const content = fs.readFileSync(file, 'utf8');
    const lines = content.split('\n');
    validateHeaderIds(lines);
  });
}