Markdown Support - With Batch n Preview [Currently unmaintained]

AnkiWeb addon 1259478414

Converts content wrapped in <amd> tags from Markdown to HTML during review, in the editor, or in batch, with optional preview and shortcuts.
AI-generated summary; may contain mistakes.

note-managementformattingshortcutsobsolete

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
15 (πŸ‘ 14 Β· πŸ‘Ž 1)
Updated
2022-02-04
Anki versions
2.1.50~
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, JavaScript, CSS, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2025-03-27 (584 days before the snapshot).
  • Test files: 9.
  • The GitHub repo is shared with 3 other addons; its commits, issues and releases are not specific to this one.
  • Commits in the last year: 0.
  • Issues: 18 open, 135 closed.
  • Pull requests: 2 open, 21 merged.
  • Median first response: 257 hours (91 answered issues and pull requests).
  • Outside pull requests: 100% of 10 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.232.1.50+2022-02-04
History across monthly snapshots

Loading…

Similar addons

Card Scheduling Priority (customize intervals)

Sets per-card custom review intervals via a right-click prioritization menu in the editor, automatically applying them during study instead of relying on deck-wide settings.

scheduling

10 votes 49% approval πŸ‘ 8 Β· πŸ‘Ž 2 ⭐ 105 Anki 2.1.62~ Updated 2023-05-12
Copy Note Fields as Markdown

Copies a single selected card’s non-empty note fields, in order and with HTML stripped, to the clipboard as Markdown via the Browser context menu, without modifying the collection.

exportnote-management

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-04-18

Description

TLDR; Surround your content with <amd> to let it be processed as Markdown. No conversion needs to be done in the editor. If desired, you can also make the convertion directly to the note on editor, just use the context menu to do it in-place.

(Prefer to check the documentation on GitHub. It's better formatted there and likely more up to date: https://github.com/ssricardo/anki-plugins/blob/master/anki-markdown/README.md)

[If you don't know Markdown, checkout the link above (in the end)]

This addon makes it possible to process cards (or parts of them) as Markdown. While editing or adding cards, write it in plain text. No formatting is done in this view. Then, when reviewing the card, it is interpreted as markdown and converted to formatted text (HTML actually).

Other option is to convert the content in-place during the edition, either getting a clean text or producing HTML.<br> These operations may also be executed in batch.

Usage

You need to identify the area(s) that the add-on should work on. This is done using a markup tag: <amd>.

On the HTML code, put the tags <amd> and </amd> around the area to be processed.

Example:

<amd>{{Example}}</amd>

This might be done either in the Card Type level (recommended) or in parts of a given card (in card edition).
Markdown-formatter won't process the entire cards, only the delimited areas.

Format the entire card type

Add those tags into Card's template (in Card Type Configuration):

Format part of a card

In the Editro, use the HTML Editor (from Anki) for the fields that you wish to use Markdown. Otherwise, Anki will format it as HTML and some hidden character would prevent the content from being a valid MD.

( Previously > In the editor there is a button Markdown to activate/deactivate the Markdown mode. When enabled this will tell Anki that the text being edited is pre-formatted and should not be escaped. Otherwise, Anki converts the text to HTML . ) The default shorcut is Ctrl+Shift+K (may be changed in Configurations).

This won't convert the Markdown to HTML yet!

While editing, it's also possible to check the Markdown being produced using the Preview:

The conversion

There are 2 modes to make the add-on convert the content:

In runtime

Save the card with the pre-formatted text and use the <amd> tag around the content. During the review, this content will be converted and showed as HTML (it won't be stored as HTML). This mode is the existing one since version 1.

In place

In the editor, use the context menu (right click) to invoke the processing immediately. There are 2 options:

  • Convert to MD
  • Convert to HTML

The other option on this menu is to wrap the selected content with <amd>.

The default shorcut to show the menu is Ctrl+Shift+M.

Batch

These 2 conversion operations above may be done in batch mode. This is available in: Browse -> Notes Menu -> Markdown Addon

Configuration

The following customization are available:

  • Shortcut Edit
  • Shortcut Menu
  • Show markdown button
  • Enable preview

Bugs / Suggestions / more...

Please, feel free to make suggestions and open issues about possible bugs found.

That and the source code are available on: Github

Last Updates

3.3 | 04/02/2022

  • Make the addon compatible with new Anki Editor

3.2 | 22/02/2021

  • Add support for blockquote (starting line with &gt;)
  • Make preview resizable
  • Make it compatible with upcoming changes on fill-the-blanks add-on
  • Fix bug to use its css styles on review

3.1 | 28/04/2020

  • Error fix: duplicating fields
  • Add support for shortcuts: italic and bold

About

Addon developed by ssricardo. Check out more of my addons on https://github.com/ssricardo/anki-plugins</amd>

There is another similar add-on for MD. It's based on the old Power Format Pack, you may check out which one fits better your needs.

For me, I prefer to store my cards with plain text, just like we do with normal markdown files. So, I don't like to have it converted to HTML and locked already in the editor. Also the thing about handling the copy/paste from web browser is useful...

README

anki-plugins

This repository is aimed to share my addons for the Anki Desktop Application.
In general, they are simple/small python modules