Typst Math in Anki

AnkiWeb addon 1725149528

Converts Typst math code into MathML or SVG for Anki flashcards, offering inline and block editors plus a replace function for $...$ equations.
AI-generated summary; may contain mistakes.

formattingshortcuts

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2026-07-12
Anki versions
26.05~
License
CC0-1.0 (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
JSON, Python, CSV
Description language
en

Maintenance

active

  • Last update or commit: 2026-07-12 (112 days before the snapshot).
  • GitHub Actions workflows: 1.
  • Commits in the last year: 1.
  • Issues: 3 open, 0 closed.
  • Pull requests: 0 open, 1 merged.
  • Median first response: 1 hour (2 answered issues and pull requests).

GitHub

Repository
xkevio/typst-anki Β· more by xkevio
Stars
⭐ 20 · forks 1 · open issues 3
Last commit
2026-07-12
License
CC0-1.0
Languages
Python, Typst, Just
Tests
0

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
24.1126.05+2026-07-12
History across monthly snapshots

Loading…

Similar addons

Gemini LaTeX Fixer

Converts dollar-sign LaTeX from AI text into Anki's MathJax format automatically on paste, and bulk-converts existing collections via a Tools menu item.

card-creationnote-managementformatting

4 votes 30% approval πŸ‘ 3 Β· πŸ‘Ž 1 Anki 2.1.66~ Updated 2026-03-05
Markdown support for code blocks and inline code

Converts backticks in the Anki editor into HTML code tags for inline code and code blocks, supporting language classes for syntax highlighting.

formatting

11 votes 62% approval πŸ‘ 10 Β· πŸ‘Ž 1 ⭐ 0 Anki 2.1.65~ Updated 2023-10-20

Description

typst-anki

Convert Typst math code to MathMLor SVGs (via the Typst compiler) for use in Anki flashcards. Click either the Typst math inline button or press Ctrl + M, T for the inline math editor (Ctrl+M, B for the math block editor).

Alternatively, click Typst math replace or press Ctrl + M, R to replace all instances of typst math code between $...$ with rendered equations. Add custom functions inside preamble.typβ€”make sure to change your text color according to your system theme!

(currently Windows-only in AnkiWeb)

[!NOTE] When using MathML, toggle the HTML editor twice (by pressing Ctrl + Shift + X) to move the cursor out of the inserted math equation.

Installation

git clone git@github.com:xkevio/typst-anki.git
cd typst-anki/src/typst-anki

mkdir lib # <- this stores external dependencies for Anki.
pip install typst -t ./lib/
zip -r typst-anki.zip ./*

Then, open Anki > Tools > Addons > Install from file > typst_anki.zip. Or, if you wish, use just.

Features

  • Use Typst HTML export to utilize MathML (since Typst v0.15.0).
  • Use Typst SVG export to ensure same visual look everywhere.

TODO

  • Replace functionality correctly inserts stylesheet while editor does not

README

typst-anki

Convert Typst math code to MathMLor SVGs (via the Typst compiler) for use in Anki flashcards. Click either the Typst math inline button or press Ctrl + M, T for the inline math editor (Ctrl+M, B for the math block editor).

Alternatively, click Typst math replace or press Ctrl + M, R to replace all instances of typst math code between $...$ with rendered equations. Add custom functions inside preamble.typβ€”make sure to change your text color according to your system theme!

[!NOTE] When using MathML, toggle the HTML editor twice (by pressing Ctrl + Shift + X) to move the cursor out of the inserted math equation.

Installation

git clone git@github.com:xkevio/typst-anki.git
cd typst-anki/src/typst-anki

mkdir lib # <- this stores external dependencies for Anki.
pip install typst -t ./lib/
zip -r typst-anki.zip ./*

Then, open Anki > Tools > Addons > Install from file > typst_anki.zip. Or, if you wish, use just.

Features

  • [x] Use Typst HTML export to utilize MathML (since Typst v0.15.0).
  • [x] Use Typst SVG export to ensure same visual look everywhere.

TODO

  • [ ] Replace functionality correctly inserts stylesheet while editor does not