Skip to content

Commit

Permalink
Add a scrolling container around block math elements
Browse files Browse the repository at this point in the history
  • Loading branch information
pepelsbey committed Sep 25, 2024
1 parent 8e3a00f commit 9572479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/wrap-tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import * as cheerio from "cheerio";

export function wrapTables($: cheerio.CheerioAPI) {
const figure = $('<figure class="table-container"></figure>');
$("table").wrap(figure);
$("table, math[display=block]").wrap(figure);
}

0 comments on commit 9572479

Please sign in to comment.