Hello! I'm experimenting with making a Typst inline math previewer for Emacs just like org-latex-preview and co.
I decided that the output format be svg so that I can easily open view it in Emacs. Since the images are to be viewed inline, i also set the following page show rules
#set page(width: auto, height: auto, margin: 0pt)
However, I noticed that certain previews were "cut-off". e.g. for the code
#example[
Express the function $f(t) = cases(20t & 0<=t<5, 0 & t>=5)$
#solution[$f(t) = 20t(1-heaviside(t-5))$]
]
I confirmed it with Firefox that the .svgs produced were "clipped". It seems to only happen only in inline math fragments, not the display math fragments.