Simple Markdown

AnkiWeb addon 354124843

Converts Markdown notes to HTML automatically after editing, with an optional manual conversion button and configurable Markdown extensions such as fenced code blocks.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
8 (πŸ‘ 6 Β· πŸ‘Ž 2)
Updated
2025-11-21
Anki versions
25.02.5~
License
Not found (this does not mean that the addon has no license)
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: 2025-11-24 (342 days before the snapshot).
  • Commits in the last year: 4.
  • Issues: 0 open, 4 closed.
  • Pull requests: 0 open, 0 merged.
  • Median first response: 8 hours (4 answered issues and pull requests).

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

Auto Markdown has 2 forks β†’

Converts fields between Markdown and HTML automatically on focus change or manually via a configurable shortcut, while preventing editing of the generated HTML.

formatting

42 votes 56% approval πŸ‘ 30 Β· πŸ‘Ž 12 ⭐ 36 Updated 2019-06-18
Auto Markdown - fix version archived fork

Converts note fields between Markdown and HTML, either automatically on focus changes or manually via a shortcut, while preventing editing of the generated HTML.

formattingobsoletefork-or-reupload

11 votes 52% approval πŸ‘ 9 Β· πŸ‘Ž 2 ⭐ 10 Anki 2.1.49~ Updated 2021-06-19
Auto-Markdown fork

Automatically renders Markdown typed into tagged note fields as styled HTML and restores raw syntax when refocused, with syntax highlighting and support for Anki 23.x–25.x+.

formattingfork-or-reupload

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-05-31
Add Table has 1 fork β†’

Inserts customizable HTML tables through a dialog or keyboard shortcut, or converts selected pipe-delimited markdown-like text into a table; it does not edit existing tables.

formattingshortcutsfork-or-reupload

144 votes 93% approval πŸ‘ 140 Β· πŸ‘Ž 4 ⭐ 7 Anki 2.1.65~ Updated 2023-06-18

Description

!!!!!WARNING!!!!!

This add-on assumes that everything you pass to it is Markdown.

In other words, if you pass something to it that is not Markdown, you're probably not gonna like the results.

This add-on is meant to require as little human interaction as possible. There are plenty of more user-friendly/visual Markdown add-ons available.

Overview

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.

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>

Bugs? πŸͺ³

I'm sure there are many. Please make an issue on the Github repo or, if you're feeling inspired, push a fix!

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>