import type { MarkdownIt } from "markdown-it"; // Tables don't shrink below their min-content width, so a wide one drags the // whole page into horizontal scroll. The wrapper keeps the overflow local. export function tableWrapPlugin(mdi: MarkdownIt): void { mdi.renderer.rules["table_open"] = (tokens, idx, options, _env, self) => `