AnkiMermaid
AnkiMermaid lets you write Anki cards in Markdown, with Mermaid diagrams, highlighted code and math. You can put clozes almost anywhere, even inside code blocks and diagram labels.
Everything that draws your cards is JavaScript that lives inside the card template. AnkiMermaid doesn't change how Anki itself works, so Anki updates are much less likely to break it. Your cards also work on your phone after a normal sync (tested on AnkiDroid), and they keep working even if you uninstall the add-on.
The add-on itself only handles setup:
It adds two note types, AnkiMD (Front, Back) and AnkiMD Cloze (Text, Extra), and copies their two script files into your media folder.
It can add the same drawing to your other note types, like Basic or Cloze. Pick the note type and the fields in Tools β AnkiMermaid β Add to note type. The rest of the card keeps its look, and Remove from note type takes it back out.
It keeps everything up to date when a new version comes out. If you edit a template yourself, it keeps your changes.
What you can put on a card:
Markdown: headings, bold and italics, lists, tables, links and images
Code blocks with syntax highlighting
Math, using Anki's own ( ) and [ ]
Mermaid diagrams: flowcharts, sequence diagrams, state diagrams, pie charts and more
Clozes in text, tables, code and diagrams
It follows Anki's light and night mode, works with cards sent from Obsidian with Obsidian_to_Anki, and needs Anki 23.10 or newer.
Built on the idea behind AnkiMD by Lauren Wong.AnkiMermaid
AnkiMermaid lets you write Anki cards in Markdown, with Mermaid diagrams, highlighted code and math. You can put clozes almost anywhere, even inside code blocks and diagram labels.
Everything that draws your cards is JavaScript that lives inside the card template. AnkiMermaid doesn't change how Anki itself works, so Anki updates are much less likely to break it. Your cards also work on your phone after a normal sync (tested on AnkiDroid), and they keep working even if you uninstall the add-on.
The add-on itself only handles setup:
It adds two note types, AnkiMD (Front, Back) and AnkiMD Cloze (Text, Extra), and copies their two script files into your media folder.
It can add the same drawing to your other note types, like Basic or Cloze. Pick the note type and the fields in Tools β AnkiMermaid β Add to note type. The rest of the card keeps its look, and Remove from note type takes it back out.
It keeps everything up to date when a new version comes out. If you edit a template yourself, it keeps your changes.
What you can put on a card:
- Markdown: headings, bold and italics, lists, tables, links and images
- Code blocks with syntax highlighting
- Math, using Anki's own ( ) and [ ]
- Mermaid diagrams: flowcharts, sequence diagrams, state diagrams, pie charts and more
- Clozes in text, tables, code and diagrams
It follows Anki's light and night mode, works with cards sent from Obsidian with Obsidian_to_Anki, and needs Anki 23.10 or newer.
Built on the idea behind AnkiMD by Lauren Wong.
https://github.com/laurensent/ankimd