Markdown Support | Tables, Code Highlighting, Math, Darkmode

AnkiWeb addon 1786114227

Fork of Markdown and KaTeX Support

2 other versions of this addon exist. Compare versions ↓

Provides archived basic and cloze note types with Markdown, KaTeX math, code-block cloze support, colored clozes, dark mode, and customizable CSS styling.
AI-generated summary; may contain mistakes.

formattingappearancecard-templatesclozeobsoletefork-or-reupload

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
23 (πŸ‘ 19 Β· πŸ‘Ž 4)
Updated
2025-06-07
Anki versions
2.1.66~
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, CSS, Vue, Python, SCSS, JSON, Twig
Description language
en

Maintenance

stale

  • Last update or commit: 2025-07-04 (485 days before the snapshot).
  • GitHub Actions workflows: 2.
  • Commits in the last year: 0.
  • Issues are turned off.
  • Pull requests: 0 open, 11 merged.
  • Median first response: 11 hours (4 answered issues and pull requests).
  • Outside pull requests: 100% of 4 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.66+2025-06-07
History across monthly snapshots

Loading…

Compare versions

The original addon and its forks. The best value in each column is in bold.

VersionWorks on Anki 26.09.3MaintenanceLast activity VotesApprovalGitHub starsNotes
Markdown and KaTeX Support original likely active 18 Oct 2026 πŸ‘ 84 Β· πŸ‘Ž 4 89% 86
↳ Markdown Support | Tables, Code Highlighting, Math, Darkmode this addon likely stale 4 Jul 2025 πŸ‘ 19 Β· πŸ‘Ž 4 63% 24 obsolete
↳ Markdown and KaTeX Support (Preview Fix) (AI-detected; may be wrong) likely active 8 May 2026 πŸ‘ 0 Β· πŸ‘Ž 0 – –

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.

Similar addons

Better Markdown Anki

Renders Anki flashcards with enhanced markdown, LaTeX math, syntax highlighting, theme-aware styling, and interactive cloze toggles via React-based note types.

formattingappearancecard-templatescloze

25 votes 65% approval πŸ‘ 21 Β· πŸ‘Ž 4 ⭐ 31 Anki 2.1.66~ Updated 2026-10-15
Anki-Coder

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.

formattingappearancemobile-compatible

9 votes 45% approval πŸ‘ 7 Β· πŸ‘Ž 2 ⭐ 4 Anki 25.07.6~ Updated 2026-04-22

Description

⚠️🚨 IMPORTANT NOTICE 🚨⚠️

This add-on is archived and no longer maintained. Please switch to the new, modern, and actively maintained version: Better Anki Markdown







Anki KaTeX Markdown (🚨 Archive)

Github Repository

Latest Release : New Card Type "Markdown and KaTeX Cloze + Show Cloze (Color)"

Latest Update Visualization

FAQs

  • replace "\(" and "\)" with "$" and "\[" and "\]" with "$$". (For ChatGPT responses)
  • if tables are not display in the right way: use "Shift+Enter" for each new row.

Overview

This plugin will add two new card types : "KaTeX and Markdown Basic (Color)", "KaTeX and Markdown Cloze (Color)". That will give good support for basic and cloze cards that contain markdown including math and code. It provides several improvement / features compared to the original. Among other things, support of: colored clozes, clozes in code, darkmode suport, custom user styling, ...

Sample 1

Customizing Styles (Credits : Eljamm)

It's possible to customize the note style by editing "user_style.css" inside the media folder. To find out where your media folder is, please refer to the Anki documentation.

If a value has already been set inside the default "style.css", you can overwrite it by using the !important flag. If you want to remove a value, you can also use the unset keyword.

/* user_style.css example */

.nightMode, .night-mode, .night_mode {
  background-color: #1e1e2e !important; /* overwrite value */
}
.nightMode code {
  filter: unset !important; /* remove value */
}

/* !important is not necessary here since ".field" is not set in "style.css" */
.field {
  display: inline-block;
  text-align: left;
}

The markdown preview will automatically follow all user style modifications.

README

⚠️🚨 IMPORTANT NOTICE 🚨⚠️

This add-on is archived and no longer maintained. Please switch to the new, modern, and actively maintained version: Better Anki Markdown

Anki Markdown

Latest Release : New Card Type "Markdown and KaTeX Cloze + Show Cloze (Color)"

Latest Update

How to use

Download Anki Add-On

Adding support and improvements of how cards are displayed. Allowing for clozes inside code blocks. Better night mode support & readability. Coloring of the cloze elements.

Creates a new Basic and a new Cloze Note Type that support Markdown and KaTeX: Markdown and KaTeX Basic (Color) and Markdown and KaTeX Cloze (Color).

The following can be used to create a sample cloze card.

# A Dummy Card
## Subtitle
### Math
- {{c1::$\pi=3.1415...$::$\pi=...$}}
### Escaping dollar
$$1\$ < 1€ $$ after

### Escaped c++ code :

```cpp
#include <stdio.h>
{{c2::boost\:\:add_vertex::how to add vertex in boost}}(...);
```

### Python

```py
def print_hello():
  print("{{c2::hello}}")
```

Front Code Back Code Math Front Math Back Light Mode

Features

Customizing Styles

It's possible to customize the note style by editing "_user_style.css" inside the media folder. To find out where your media folder is, please refer to the Anki documentation.

If a value has already been set inside the default "_style.css", you can overwrite it by using the !important flag. If you want to remove a value, you can also use the unset keyword.

/* _user_style.css example */

.nightMode, .night-mode, .night_mode {
  background-color: #1e1e2e !important; /* overwrite value */
}
.nightMode code {
  filter: unset !important; /* remove value */
}

/* !important is not necessary here since ".field" is not set in "_style.css" */
.field {
  display: inline-block;
  text-align: left;
}

The markdown preview will automatically follow all user style modifications.

Used Libraries

Markdown-It
KaTeX

Installation

  • Go to to see how to install this addon for anki
  • To install locally download the latest release and install by opening Anki β†’ Tools β†’ Add-ons β†’ Install from file, then select MDKaTeX.ankiaddon

Fork of : https://github.com/Jwrede/Anki-KaTeX-Markdown.

Credits to

  • Jwrede for starting this cool project.
  • Eljamm for his substantial contributions with dynamic styling and significantly enhancing the code's maintainability.