// Wraps tables in a scrollable figure to avoid overlapping with the TOC sidebar. // Before: ...
// After:
...
import * as cheerio from "cheerio"; export function wrapTables($: cheerio.CheerioAPI) { const figure = $('
'); $("table, math[display=block]").wrap(figure); }