AnkiWeb
- Rating
- 1 (π 0 Β· π 1)
- Updated
- 2021-03-14
- Anki versions
- 2.1.41~
- Description language
- en
AnkiWeb addon 2141874715
Imports Markdown notes into Anki for Basic or Basic (and reversed) cards, using folder structure for decks, emphasizing Markdown-only editing and backups.
Open on AnkiWeb GitHub Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | 2.1.41+ | 2021-03-14 |
Loadingβ¦
Turns Anki into a markdown notebook with folder organization, converting lines into Basic, reversible, and cloze cards and generating synced notes, plus search, import/export, and PDF export.
Generates Basic and Cloze Anki flashcards from .md, .txt, and .markdown notes using Ollama AI, with duplicate detection, auto-tagging, custom prompts, and English/Italian interface.
Syncs structured Notion notes into Anki as clean, updated cards, supporting basic, reversed, input, cloze, and image occlusion workflows.
Imports notes from a text format using inherited metadata for decks, note types, and tags, plus line-based fields, bold/italic/link markup, and nested lists.
Imports Obsidian vault files into Anki as notes, preserving wiki-links and converting markdown formatting, tags, lists, and Q&A into cloze or basic cards.
Exports Anki Note Type definitions into indented per-type text files for comparing structures, tracking changes, and managing complex collections.
β οΈβ οΈPlease version control your markdown notes and backup your Anki notes before attempting to import notes from markdown files using this add-on. Since only two built-in models are supported, this add-on might cause unexpected behavior. This has worked out well for me since Jan 2018 because I was starting from scratch and I only use the two supported models. β οΈβ οΈ
This is an Anki add-on that extracts notes from markdown files and imports them to Anki. This add-on is meant to be used when maintaining all notes using Markdown files only - any edits made from Anki will be lost the next time this add-on is used. Major advantages of doing so:
Only these two built-in models are supported for now -
BasicandBasic (and reversed card)Media (images/audio) is not supported.
To download and install directly from Ankiweb, please copy and paste the following code into the desktop program: 2141874715
Alternatively, open your add-ons folder by selecting "Tools -> Add-Ons -> Open Add-Ons Folder" and simply paste the anki-markdown.py file into it.
To start using this add-on, first extract all existing notes into markdown by selecting "Tools -> Export to Markdown Notes". You should see all the notes following the built in models in a "Notes" folder in the folder you chose. You can now follow the conventions below and choose to rearrange your notes along with their id comments.
Create a Notes folder wherever you want the notes to be and follow the below conventions. Then select "Tools -> Import from Markdown Notes" in the Anki desktop app to import them into Anki.
The file structure of the Markdown files is shown below.
Notes
β algorithms.md
β
ββββpython
β β socket.md
β β files.md
β
ββββtools
β git.md
β tmux.md
Currently there is support only for two types of notes - Basic and Basic (and reversed card). To create a basic card, enter the following anywhere in the Markdown file:
Q: Question
A: - Answer line 1
- Answer line 2
This creates a basic card with Question as the front of the card and
Answer line 1
Answer line 2
as the back.
Blank lines in the markdown file are considered the end of a Note.
To create a basic and reversed card, use QA instead of Q above like so:
QA: Question
A: - Answer line 1
- Answer line 2
Sample Notes are in the Notes folder.
All the code is in the single anki-markdown.py file. Going through the docs first is highly recommended. In the markdown files, id comments are added as soon as a note is imported successfully into anki - this will ensure any changes to the note in the markdown file edits the same anki note.
This addon is shared on AnkiWeb using the instructions here.