AnkiMermaid

AnkiWeb addon 572489996

Enables Markdown-based Anki cards with Mermaid diagrams, syntax-highlighted code, math, and clozes almost anywhere, plus setup of note types that render via card-template JavaScript and work on mobile.
AI-generated summary; may contain mistakes.

formattingcard-templatesclozemobile-compatible

Open on AnkiWeb Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-11-25
Anki versions
2.1.1~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
JavaScript, JSON, Python
Description language
en

Maintenance

active

  • Last update or commit: 2026-11-25 (6 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-11-25
History across monthly snapshots

Loading…

Similar addons

Markdown input archived has 1 fork β†’

Enables adding and editing Anki notes in extended CommonMark Markdown, either directly in editor fields or in a separate window, with syntax highlighting, extensions, and configurable HTML conversion.

formattingobsolete

30 votes 63% approval πŸ‘ 24 Β· πŸ‘Ž 6 ⭐ 25 Anki 2.1.66~ Updated 2023-09-01

Description

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