AnkiWeb
- Rating
- 8 (π 6 Β· π 2)
- Updated
- 2025-11-21
- Anki versions
- 25.02.5~
- Description language
- en
AnkiWeb addon 354124843
Converts Markdown notes to HTML after editing or via a button, with configurable extensions and code-block syntax highlighting support.
Open on AnkiWeb GitHub Ask about alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 23.09 | 25.02.5+ | 2025-11-21 |
Loadingβ¦
Converts single and triple backticks in Anki's editor into HTML code tags, supporting language classes for blocks and syntax-highlighter integration.
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.
Processes <amd>-delimited card content as Markdown at review or in-place, with preview, batch conversion, shortcuts; currently unmaintained.
Enables adding and editing Anki notes in extended CommonMark Markdown via editor fields or a separate window, with CodeMirror editing, extensions, and configurable conversion.
Brings Markdown to Anki 2.1 by converting fields between Markdown and HTML automatically or manually, preventing generated HTML edits.
Cleans AI-generated Markdown and LaTeX formatting in the current Anki note, previews changes, and offers session-only undo.
Anki addon that allows you to type your notes in Markdown and have it automatically converted to HTML. NOTE: this happens only when you are finished editing, not as you are typing. You need to close the editor, or if you're in the browser, navigate to the next card (Ctrl-Shift-N) then back. You should then see the changes.
If you don't want your notes to be automatically converted, you can use the Markdown button provided. Select the Markdown text you want to convert, and hit the button.
Also includes various Markdown extensions that can be enabled or disabled as you like. config.md has more info.
The goal of this addon was to keep things as simple as possible. All the other Markdown addons were too cumbersome and complex for me. I just wanna write my notes in Markdown and forget I have this addon installed. I think I've accomplished that. All the functionality is provided in 60 lines of Python.
As of January 2024 (I haven't checked the exact version), the Anki editor regrettably inserts <br> tags when ever you hit Enter. This really messes with the Markdown formatting, especially for code blocks. The workaround that I use is to type my code blocks in the editor's HTML editor (Ctrl-Shift-X). The HTML editor does not insert <br> tags, though entering Markdown in the HTML editor is kinda ironic.
The fenced_code extension (enabled by default) allows you to enter code blocks. Moreover, you can specify the language of the code like in Github flavored Markdown. ```php will produce <pre><code class="language-php">. This allows you to include syntax highlighting for your code blocks.
FWIW, to install a syntax highlighter:
collection.media directory (for example, highlight.min.js)_ (for example, highlight.min.js -> _highlight.min.js).
_ (e.g., _github-dark.min.css)<link rel="stylesheet" href="_github-dark.min.css">
<script src="_highlight.min.js"></script>
<script>hljs.highlightAll();</script>