Remix.run Logo
stared 3 days ago

I am curious, if there is any library for inline formula like KaTeX, but supporting Typst syntax?

runarberg 3 days ago | parent | next [-]

I wrote a library with a syntax similar to Typst (actually inspired by AsciiMath; and predates Typst by about a decade). Then there are Markdown-It plugins around it.

https://mathup.xyz/

https://github.com/runarberg/markdown-it-math

jeremyscanvic 3 days ago | parent | prev [-]

I would assume you pretty much get that out of the box given Typst compiles to HTML natively?

sprinkly-dust 3 days ago | parent | next [-]

Currently that feature is unsupported or I just can't figure out how to do it. With the latest compiler version 0.14 any .typ file I try to compile will incur warnings about skipping the equations (skipping the main reason I'd want to compile a Typst file to HTML...).

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.

stared 3 days ago | parent | prev [-]

I was more looking for things I can use with blogs with Markdown and frameworks like Astro.

But with the development of Typst, maybe the way to go is to use Typst rather than Markdown.