Export Anki notes to individual markdown files, one file per note, named after the Front field. HTML in Back fields is converted to markdown.
/export-anki-notes or "export Anki cards to markdown" or "save Anki notes as files".
./export-anki-notes.sh "<query>" <output_dir>..md file named after its Front field../export-anki-notes.sh "<query>" [output_dir]
# Export a specific deck
./export-anki-notes.sh 'deck:"My Deck"' ./my-deck
# Export notes with a tag
./export-anki-notes.sh 'tag:leech' ./leeches
# Export to default folder (./anki-export)
./export-anki-notes.sh 'deck:"English"'
Each note is saved as <Front field>.md with this structure:
# Note (nid: 1234567890)