Simple Markdown

AnkiWeb addon 354124843

Converts Markdown notes to HTML after editing or via a button, with configurable extensions and code-block syntax highlighting support.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
8 (πŸ‘ 6 Β· πŸ‘Ž 2)
Updated
2025-11-21
Anki versions
25.02.5~
Description language
en

Maintenance

stale

  • Last update or commit was 311 days before the snapshot (2025-11-24).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.0925.02.5+2025-11-21
History across monthly snapshots

Loading…

Similar addons

Markdown support for code blocks and inline code

Converts single and triple backticks in Anki's editor into HTML code tags, supporting language classes for blocks and syntax-highlighter integration.

formatting

Rating 11 πŸ‘ 10 Β· πŸ‘Ž 1 ⭐ 0 Anki 2.1.65~ Updated 2023-10-20
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
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

README

Overview

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.

Goal

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.

A note on code blocks (or any other multi-line Markdown syntax)

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.

Another note on code blocks and syntax highlighting

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:

  • Copy the downloaded JS code into your collection.media directory (for example, highlight.min.js)
  • Prefix the JS library name with _ (for example, highlight.min.js -> _highlight.min.js).
    • This is so Anki doesn't try to delete it since it's not being referenced by any field.
  • Copy an associated CSS file for styling and also prefix it with an _ (e.g., _github-dark.min.css)
  • Edit your cards to call the JS library and load the CSS like so:
<link rel="stylesheet" href="_github-dark.min.css">
<script src="_highlight.min.js"></script>
<script>hljs.highlightAll();</script>