summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2026-06-14 19:52:49 +0200
committerPaweł Redman <pawel.redman@gmail.com>2026-06-14 19:52:49 +0200
commitea038f1adb7076ff12055c2a8b05955be7c3ed5f (patch)
tree092655943f642621c35dae996fba896308515fc5 /site
parente85d3d9a62857c557526b10e33cb1201a2ba83c4 (diff)
Make block equations larger and centered
Diffstat (limited to 'site')
-rw-r--r--site/common.typ10
1 files changed, 6 insertions, 4 deletions
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)
}
}