Supporting typst in cards

As you know, you can use Latex to include math in anki cards. WIth the release of typst this year, I think that it might be interesting to add support for it. Indeed, typst syntax is really easy to read and to write (you can see examples on typst. app).

Furthermore, typst is fully open-source and really fast to compile, written in rust. A discord bot to easily format typst code has been made and is available here : github. com/mattfbacon/typst-bot , it might help to implement this since that its generation might be similar.

6 Likes

It looks a bit too new to consider supporting yet, and the pdf-only output would likely be problematic. But it will be interesting to see how it evolves over time.

3 Likes

Typst devs are considering to add HTML support, besides web version of Typst supports “HTML canvas” output, so, maybe not now, but it’s technically possible to implement Typst for Anki cards.

Markdown support is one of the most requested feature, but Typst provides way more powerful capabilities; it would be really cool if you considered support of Typst in the future, omitting Markdown.

SVG (and PNG) output is now supported, with more formats on the way (see the roadmap).

1 Like

For those still interested, I developed an add-on in the meantime that can render Typst math either via its native SVG export or via conversion to MathJax with pandoc! See: https://ankiweb.net/shared/info/1725149528.

2 Likes

Typst has an experimental html export now. So I assume in the “near” future it will have a proper html export. It is also accepted by some scientific journals now.

1 Like

Hi everyone,

as it seems that the post “Supporting typst in cards” went to sleep, I want to ask if typst will be implemented in the near future? As others already mentioned, typst is fast to write, easy to learn, and compiles fast. I would absolutely love to write my Anki cards in typst.

cheers

You don’t have to open a new topic for that; just ask on that linked topic instead (it’s not locked).

Only if someone actually wants to do the work. And if dae considers it as an improvement (e.g. he said it’s still a bit too new for his liking). Besides that html support (based on the topic) seems to be only experimental, which means it likely won’t be considered in the new future.

Someone posted an add on in the linked topic that enables you to do exactly that.

1 Like