Ankleen: Fix AI Markdown and LaTeX Formatting

AnkiWeb addon 955401195

Cleans AI-generated Markdown and LaTeX formatting in the current Anki note, previews changes, and offers session-only undo.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-05-07
Anki versions
24.11~
Description language
en

Maintenance

active

  • Last update or commit was 147 days before the snapshot (2026-05-07).
  • The repository has 1 test files.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
24.06.324.11+2026-05-07
History across monthly snapshots

Loading…

Similar addons

Auto Markdown - fix version archived

Converts note fields between Markdown and HTML automatically or manually, with bugfixes for Night Mode and nested lists, but is retired and unsupported on newer Anki.

formattingobsoletefork-or-reupload

Rating 11 πŸ‘ 9 Β· πŸ‘Ž 2 ⭐ 10 Anki 2.1.49~ Updated 2021-06-19
Better Markdown Anki

Renders flashcards with advanced markdown, LaTeX math, syntax highlighting, theme-aware styling, tag badges, and interactive cloze toggles via React components.

formattingappearancecard-templatescloze

Rating 24 πŸ‘ 20 Β· πŸ‘Ž 4 ⭐ 31 Anki 2.1.66~ Updated 2026-08-02
Auto Markdown

Brings Markdown to Anki 2.1 by converting fields between Markdown and HTML automatically or manually, preventing generated HTML edits.

formattingshortcuts

Rating 42 πŸ‘ 30 Β· πŸ‘Ž 12 ⭐ 36 Updated 2019-06-18
Obsidian Sync (Differential)

Exports Anki notes differentially into Obsidian Markdown files, mirroring decks, syncing media, generating index files, and linking cards while preserving HTML, MathJax, and complex tables.

exportsync-integrationformatting

Rating 13 πŸ‘ 13 Β· πŸ‘Ž 0 ⭐ 24 Anki 26.08.1~ Updated 2026-08-09

README

Ankleen

Ankleen is a safe, non-destructive, one-click editor tool for Anki that automatically fixes AI-generated Markdown and converts $ ... $ / $$ ... $$ LaTeX delimiters into simple Unicode or Anki-compatible MathJax.

Features

  • Markdown Cleanup: Safely converts **bold**, __bold__, ~strikethrough~, and `inline code` to standard Anki HTML tags.
  • LaTeX Math Fixes: Replaces generic $ delimiters with native Anki \( and \[ syntax, or drops them entirely in favor of plain Unicode for simple probability/set formulas (e.g. \cup -> βˆͺ).
  • Visual Spacing: Automatically normalizes spacing by replacing single line breaks with double line breaks (<br><br>) to prevent text clumping.
  • Preview & Undo: Generates a visual HTML diff preview to confirm changes. If you make a mistake, simply click "Undo Fix" to restore the previous state of the fields.

Installation

  1. Go to the Releases tab (or download the .ankiaddon file directly).
  2. Double-click the ankleen.ankiaddon file to install it into Anki.
  3. Restart Anki.

Usage

  1. Open any note in the Anki Editor.
  2. Click the "Fix Formatting" button in the top formatting toolbar.
  3. Review the diff preview pop-up and click Apply.
  4. If you want to revert the changes, click "Undo Fix".

Development

To build the add-on package locally from source:

  1. Clone this repository.
  2. Run the included build.ps1 script (or manually zip the contents of the src directory into an .ankiaddon file).
  3. The resulting .ankiaddon file will be generated in the root directory.