Can I setup things to have all $...$ math show as block equations?
Use case: for CeTZ figures I need all math to have correct bounding boxes, otherwise things like fill: white don’t work as expected. But having to write always things like $ P $ instead of $P$ is annoying and easy to forget. So I’d like to change the default in particular files or scopes, to have $...$ produce block equations.
I tried #set math.equation(block: true) but the spacing in $...$ takes precedence.
Here’s an example of what I want to fix:
#import "@preview/cetz:0.2.2"
#let opaque(it) = block(fill: white, inset: 1pt, it)
#cetz.canvas({
import cetz.draw: *
line((-1, 1), (1, -1))
content((-0.4, 0.4), opaque($|x|$))
content((0.4, -0.4), opaque($ |x| $))
})

I’d like the $|x|$ (top-left) to render the same as $ |x| $.