AnkiSpace

AnkiWeb addon 907330705

Adds a toolbar button that inserts spaces between adjacent curly braces inside LaTeX/MathJax, preventing conflicts with cloze deletion syntax while preserving existing cloze markers.
AI-generated summary; may contain mistakes.

formattingclozebugfix-workaround

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-03-01
Anki versions
2.1.1~
License
GPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2026-03-01 (245 days before the snapshot).
  • Commits in the last year: 2.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-03-01
History across monthly snapshots

Loading…

Similar addons

Fix MathJax in Cloze

Fixes cloze conflicts by replacing internal }} with } }, handling trailing braces and nested clozes, and removing non-breaking spaces inside MathJax, with browser and reviewer bulk-fix actions.

note-managementformattingclozebugfix-workaround

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-04-20
Quizify Tool

Renders Markdown in Anki cards as interactive question typesβ€”fill-in-the-blank, multiple choice, reveal, annotations, collapsible/tabbed blocks, recitation, audio, code and mathβ€”with editor tools and bulk Markdown import.

review-flowformattingcard-templatesclozequizmobile-compatible

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 171 Anki 2.1.1~ Updated 2025-02-16

Description

AnkiSpace β€” Fix MathJax Brace Spacing

Adds a { } button to the editor toolbar that fixes adjacent curly braces inside LaTeX/MathJax environments, preventing conflicts with Anki's cloze deletion syntax.

The problem: Nested LaTeX braces like \frac{{x}}{{y}} clash with Anki's {{c1::...}} cloze markers.

The fix: Click the { } button to space them out: \frac{{x}}{{y}} β†’ \frac{ {x} }{ {y} }

  • Works inside (...), [...], $...$, and $$...$$
  • Preserves cloze deletions like {{c1::...}}
  • Handles deeply nested braces in a single click
  • Available in both the Add Note dialog and Card Browser
  • Can be disabled via Tools β†’ Add-ons β†’ AnkiSpace β†’ Config

README

AnkiSpace β€” Fix MathJax Brace Spacing

Anki addon that adds spaces between adjacent curly braces inside LaTeX/MathJax environments, preventing conflicts with Anki's cloze deletion syntax ({{c1::...}}).

The problem

When writing LaTeX in Anki, nested braces like \frac{{x}}{{y}} clash with Anki's cloze syntax β€” Anki sees {{ and }} as cloze markers rather than LaTeX grouping.

The fix

Click the { } button in the editor toolbar to fix all fields in the current note. The button appears in both the Add Note dialog and the Card Browser.

Transforms (inside LaTeX only):

Before After
{{ { {
}} } }

Runs repeatedly until no adjacent braces remain (e.g. }}}} becomes } } } }).

Supported LaTeX delimiters: \(...\), \[...\], $...$, $$...$$

Examples

\(\frac{{x}}{{y}}\)       β†’  \(\frac{ {x} }{ {y} }\)
{{c1::\[\frac{2}{3}\]}}   β†’  unchanged (cloze preserved)

Configuration

Go to Tools β†’ Add-ons β†’ AnkiSpace β†’ Config:

{
    "enabled": true
}

Set enabled to false to disable the button without removing the addon.

Installation

Copy the ankispace folder into your Anki addons directory:

  • Linux: ~/.local/share/Anki2/addons21/
  • macOS: ~/Library/Application Support/Anki2/addons21/
  • Windows: %APPDATA%\Anki2\addons21\

Restart Anki.