YAMDAI stands for Yet Another Markdown Anki Importer.
It takes a specifically formatted markdown document and builds a deck for the flashcard app Anki. See below for an example
There are already several markdown to anki converters (ankdown, MDanki, markdown-to-anki...). I didn't like how those handled tags, thus my own version.
From the command line:
pip install git+https://github.com/Mufabo/YAMDAI
From the command line:
pip3 install git+https://github.com/Mufabo/YAMDAI
The first line is a level-1 header (line starts with #) and will be the name of the resulting apkg file
The next line is the name of the deck. If you want to use a subdeck separate parent deck with double colons from subdecks.
The following lines contain tags. Subtags are separated using double colons. (Requires Hierarchical Tags 2 add-on) All tags will be used for all cards.
Now start the actual cards. Frontsides are level 2 headers (lines start with ##) The following text is the respective backside.
Yamdai supports...
- images as long as they are stored in ankis collection.media folder.
- code highlighting
- inline math
- display math
- bullet points
YAMDAI is executed using the command line:
yamdai Path/to/markdownFile
The resulting Anki package (.apkg file) will be stored in the current working directory. The apkg file can be imported from within Anki by clicking on File and then choosing import or CTRL+SHIFT+I from within Anki
This example creates a deck called yamdai with a subdeck subyamdai. Each note in this deck has the tags tag1 and tag2::subtag1
# Yamdai_example
yamdai::subyamdai
tag1 tag2::subtag1
## Inline math
$\sum_i \tau$
## Display math
$$
\sum_i^\infty \gamma
$$
## Just text
Paris is the capitol of France
Berlin is the capitol of Germany
## Image
Make sure the image is located in Anki's collection.media folder.

## Bullet points
* A
* B
* C
## Code
````python
import numpy as np
print("Hello World!")
````