From ea038f1adb7076ff12055c2a8b05955be7c3ed5f Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 14 Jun 2026 19:52:49 +0200 Subject: Make block equations larger and centered --- site/common.typ | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'site/common.typ') diff --git a/site/common.typ b/site/common.typ index f7a12b3..5acb91a 100644 --- a/site/common.typ +++ b/site/common.typ @@ -46,11 +46,13 @@ // As of 0.14, equations aren't supported in HTML. Emit them as SVG instead. show math.equation: it => context { - if target() == "html" { - show: if it.block { it => it } else { box } - html.frame(it) + show: if it.block { it => it } else { box } + if it.block { + html.elem("div", attrs: (class: "block-math"))[ + #html.frame(it) + ] } else { - it + html.frame(it) } } -- cgit