summaryrefslogtreecommitdiff
path: root/site/common.typ
diff options
context:
space:
mode:
Diffstat (limited to 'site/common.typ')
-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)
}
}