Renders Markdown flashcards with Shiki-powered syntax highlighting across 300+ languages and 60+ themes, advanced code annotations, MathJax math, light/dark styling, and AnkiConnect-based AI agent support.
Forks can add features or work in a different way. Read the description before you change to another version.
Fork detection is incomplete, so other versions can exist.
Write flashcards in Markdown with syntax-highlighted code, media pasting, multiple card types, and consistent rendering across desktop, AnkiDroid, AnkiMobile, and AnkiWeb.
Renders Anki flashcards with enhanced markdown, LaTeX math, syntax highlighting, theme-aware styling, and interactive cloze toggles via React-based note types.
Adds a CodeMirror code editor to Anki flashcards with syntax highlighting, themes, live preview, double-click editing, configurable languages and note types, and mobile and cloze-card support.
Adds Basic and Cloze note types supporting Markdown and fast KaTeX math, with cross-device online rendering, code highlighting, chemistry formulas, text marking, and a desktop live preview.
Adds one-click syntax highlighting to selected or pasted code in Anki's editor, with line numbers, customizable themes, CSS or inline highlighting, and hotkeys.
Inserts syntax-highlighted code snippets into Anki notes, letting users choose the programming language via toolbar button or hotkey, with configurable line numbers, centering, and CSS styling.
Write flashcards in Markdown with the same syntax highlighting you know from your code editor. Powered by Shiki (the engine behind VS Code), with 300+ languages, multiple themes, and light/dark mode support.
Syntax highlighting with 300+ languages and 60+ themes, only your selections are downloaded and synced
Advanced code annotations including line highlighting, word highlighting, focus mode, and error/warning markers
Full Markdown with bold, italic, lists, blockquotes, tables, images, alerts, and more
Clean card design with polished light/dark styling that matches Anki's native UI
Settings panel to dynamically pick languages and themes
Mobile works on AnkiDroid and AnkiMobile
AI agent friendly built-in agent skill lets AI agents create and manage flashcards via AnkiConnect
See the documentation for all features and syntax guide.
Found a bug? This add-on is actively maintained. Please report issues on GitHub with your Anki version and debug info.
Anki add-on for Markdown notes with syntax highlighting powered by Shiki
Write flashcards in Markdown with full syntax highlighting. Pick from 300+ languages and 60+ themes β only your selections are downloaded and synced. Supports light and dark mode across desktop, mobile, and AnkiWeb.
[!NOTE]
Requires Anki 25.x or later. Go to Tools β Add-ons β Get Add-ons and enter 1172202975 to install.
Shared cloze deletions, such as {{c1,2::text}}, require Anki desktop 26.05 or later.
See the documentation for all supported features.
Syntax highlighting with 300+ languages and 60+ themes, only your selections are downloaded and synced
Advanced code annotations including line highlighting, word highlighting, focus mode, and error/warning markers
Full Markdown with bold, italic, lists, blockquotes, tables, images, alerts, and more
Math using Anki's built-in MathJax, with no bundled math engine or fonts (cloze syntax and limits)
Clean card design with polished light/dark styling that matches Anki's native UI
Settings panel to dynamically pick languages and themes
Cross-platform works on desktop, AnkiDroid, AnkiMobile, and AnkiWeb
Create a new note using the Anki Markdown note type (Add β Note Type dropdown β Anki Markdown)
Write your question in the Front field using markdown
Write your answer in the Back field using markdown
The markdown will be automatically rendered with syntax highlighting when you review the card
[!NOTE]
See the documentation for all supported markdown features including code blocks, line highlighting, alerts, and more.
AI Agent Skill
Markdown is a perfect format for AI-generated content, and this add-on leans into that. It ships with a companion skill that lets AI coding agents (Claude Code, Codex, etc.) create and manage markdown flashcards directly from your editor via AnkiConnect. The add-on renders the markdown, the skill creates it.
Prerequisites: Anki desktop running with AnkiConnect installed.
Install:
npx skills add terkelg/anki-markdown -s anki
Settings
Open the settings panel from Tools β Add-ons β Anki Markdown β Config.
Languages β pick which languages are available for syntax highlighting. New languages are downloaded on save. Use the filter and "Selected only" toggle to manage your list.
Theme β choose separate Shiki themes for light and dark mode.
UI β toggle cardless mode for a borderless card design.
Development
See development.md for build, test, and release instructions.