I would assume you pretty much get that out of the box given Typst compiles to HTML natively?
But with the development of Typst, maybe the way to go is to use Typst rather than Markdown.
As per their GitHub they haven't included MathJax or KaTeX support yet as they were more focused on semantic and structural accuracy of HTML output with this release.