lervag / apy

CLI script for interacting with local Anki collection
MIT License
243 stars 17 forks source link

Can apy be used to convert the contents of a markdown file to anki? #82

Closed vinoff closed 7 months ago

vinoff commented 7 months ago

I am looking for something that I honestly think should not be hard:

Weirdly enough, I spend the whole morning trying many and none do what I want. I came across your posts on reddit and it left me wondering if apy does this..

Imagine I have a file, called input.md. This is a file which has all the cards I want. I edit this file with neovim, with my snippets and code completion and all that.

The file is something like this:

apy

The syntax itself does not really matter. I don't care if I separate cards using "---" or something else. Or if questions start with h1 headers or h2 headers or whatever. But hopefully you get the idea.

Then, I should be able to import the cards into anki.

Does apy does this?

vinoff commented 7 months ago

I just tried it and it does! Thank you so much @lervag!

lervag commented 7 months ago

Does apy does this?

Well, yes, sort of. The Markdown syntax for notes is different than the one in your example.

I just tried it and it does! Thank you so much @lervag!

It seems you figured it out; feel free to open issues to ask further questions or if you have problems.