fix: gate equation decimal rewrite by locale setting

This commit is contained in:
Popa committed 2026-09-14 22:39:19 +02:00
1 parent cdda813102
commit 22cb61421d
1 file changed
+4 -4
+4 -4
View File
@@ -85,13 +85,13 @@
show table.cell.where(y: 0): it => if table-header-smallcaps { smallcaps(it) } else { it } show table.cell.where(y: 0): it => if table-header-smallcaps { smallcaps(it) } else { it }
show math.equation: it => { show math.equation: it => if decimal-comma {
show regex("\\d+\\.\\d+"): it => if decimal-comma { show regex("\\d+\\.\\d+"): it => {
show ".": { "," + h(0pt) } show ".": { "," + h(0pt) }
it it
} else { it } }
it it
} } else { it }
let digit-grouping = state("digit-grouping", group-digits) let digit-grouping = state("digit-grouping", group-digits)