Math Delimiters Replacer Plus (Supports Bulk updates)

Math Delimiters Replacer Plus

Install via ankiweb

This add-on converts MathJax delimiters while editing notes and when batch-updating selected cards in the Browser, using the same matching logic as the original project it builds on
(Supports Bulk update)

What it does

  • Replace display math: $$ … $$\[ … \] without altering the inner TeX content
  • Replace inline math: $ … $\( … \) with the same guarantees as above
  • Adds a toolbar button labelled \(...\) in the Editor for one‑click conversion of the current selection
  • Adds a Browser action named \(...\) that processes all fields of all selected notes, with a single undo group for Ctrl+Z

giphy

Installation

  • Install from AnkiWeb by opening Tools → Add‑ons → Get Add‑ons and entering the code 699086701

Usage

  • Editor: select text containing $…$ or $$…$$, then click the \(...\) toolbar button or press the configured shortcut to convert delimiters in place in the active field
  • Browser: select any cards, open the Edit menu, choose \(...\), and the add‑on will convert delimiters in every field of the selected notes with one undo checkpoint for the whole run

Keyboard shortcut

  • The shortcut is read from config.json key "hotkey" and is applied to both the Editor action and the Browser menu action on startup
  • If a plain Alt+letter collides with menu mnemonics on your platform, set "hotkey" to a combination like Shift+Alt+M in config.json and reload add‑ons to take effect

Compatibility

  • Tested on Anki 25 with Qt 6, with Browser and Editor integrations registered through modern hooks and with fallbacks for older APIs where practical
  • Undo is implemented with start_undo/stop_undo when available and falls back to a checkpoint on older collections to preserve a single-step revert

Notes on MathJax delimiters

  • Anki’s manual documents MathJax inline \(...\) and display \[...\] delimiters, which this add‑on standardizes from $ and $$ sources used in some notes
  • For equations that include backslashes or non‑breaking spaces, insertion uses a safe transport so the literal \[/\( sequences appear as intended in the field text before rendering

Attribution and credits

Support and source pointers

  • For usage instructions, updates, and issue reporting, consult the maintained add‑on’s AnkiWeb page under code 401047458
  • For background, screenshots, and original documentation, refer to the legacy add‑on page under code 211799575
1 Like