Skip to content

Commit

Permalink
fix(layout): add scrolling container around block math elements (#11856)
Browse files Browse the repository at this point in the history
Add a scrolling container around block math elements

Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
  • Loading branch information
pepelsbey and caugner authored Sep 25, 2024
1 parent 3ac917f commit 69b2cc9
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 69b2cc9

Please sign in to comment.