htlin222 / anki_batch

batch generate anki deck through zettlekasten notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ANKI batch

中文說明

TLDR

  1. create a folder with many markdown files in it
  2. will treat each markdown file as a deck
  3. each markdown file should be formated as:
    • the front will start from the h2 ## title
    • the back will start after ---
    • h1 # title will be the deck name
# deckname

## card 1

---

back

## card 2

---

back
  1. Install python packages
pip install -r requirements.txt
  1. run
make DECK=your_folder_name
  1. you will get the .apkg file from each markdown

Supplementary

  • Any file with the name containing 'index' will be ignored.
    • Especially useful for: creating a note_index.md using wikilinks to connect various documents.
  • Images should be added in markdown format like ![alt](img.jpg) or ![alt](https://i.imgur.com/abc123).
  • You can modify the theme.css to adjust the card styles.

About

batch generate anki deck through zettlekasten notes

License:MIT License


Languages

Language:Python 89.8%Language:Makefile 6.4%Language:CSS 3.8%