Memorize icon indicating copy to clipboard operation
Memorize copied to clipboard

Support Anki import

Open 12people opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

It'd be great if Flashcards allowed importing Anki files.

Describe alternatives you've considered

I suppose Anki could gain support for export to Flashcards instead, but Anki is the more common format here.

Additional context

Anki is probably the most commonly-used free and open-source flashcard app. As such, there's a lot of Anki decks being shared around and it'd be great to be able to use them inside Flashcards.

12people avatar Feb 22 '24 07:02 12people

Thanks for opening this issue! There is basic support for importing Anki decks since the commit afe3a8bb87edfdfa0f2dcac6648f9c66d3a78cf3, discussed in #1 here. This works for simple decks, but the difficulty is that Anki supports HTML while Flashcards doesn't. The idea is that Markdown support could be implemented into Flashcards, and the HTML of a deck could then be converted into Markdown during the import process. What do you think about that, @12people?

david-swift avatar Feb 22 '24 12:02 david-swift

That sounds great!

Only thing to keep in mind here: there should be a message before or after the import about how some aspects of the Anki deck might not be imported correctly (as HTML -> Markdown is lossy), so that users aren't surprised that some things don't look quite right.

12people avatar Feb 23 '24 06:02 12people