I built a zero-dependency utility to fix them: npm install markdown-table-repair import { repairTable } from 'markdown-table-repair'; const fixed = repairTable(broken);
Works with partial/streaming tables, supports CJS/ESM/Browser. GitHub: https://github.com/Joulessies/markdown-table-repair npm: https://www.npmjs.com/package/markdown-table-repair