!!!!!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!
Liên kết hỗ trợ
Reviews (7)
👍 2025-06-18
It works well in Linux Mint
👍 2024-12-09
Don’t USE IT. Don’t USE IT. Don’t USE IT. It will break all card typesetting. There is no problem pressing the button at first, and you will think it can be used, but editing the old card layout will break everything… All line breaks and formatting have been removed, making the card very hard to read.
👍 2024-10-22
似乎这个插件会打乱我的代码类型的卡片,其它有格式的文本也会被打乱,要谨慎安装,请作者优化,卡片被打乱了无法恢复
👍 2024-10-04
Chatgpt outputs!
👍 2024-10-03
Yes, so simple it hurts xD
👍 2024-10-03
Simple and Excellent. Works with Version 24.06.3. Wondering why it does not get more positive feedback, though.
👍 2024-09-18
works great!