How to render math equations inline and in CeTZ in html export?

Yes:

#let canvas(..args) = html.frame(cetz.canvas(..args))

// Usage:
#canvas({
  import cetz.draw: *
  // and so on
})
1 Like