Typst to LaTeX is in early development, so it might not work on your machine! If you try it out, please let me know of any issues not listed below.
This add-on provides a button in the editor for converting Typst code to LaTeX. When the button is pressed, anything between two dollar signs is converted. There is also a menu for configuring preamble.
You will need to have Pandoc installed - see pandoc.org for installation instructions. Pandoc is the software that actually performs the conversion - this add-on simply provides a bridge between Pandoc and Anki.
The source code is available on GitHub.
Known issues
- The add-on seems to not work properly with cloze cards. The source of the bug eludes me but I'll figure it out when I have the time.