[Roadmap] ideas about taking another dependency for generating notes #8
Description
Found genanki-js just now. It's a JS implementation of genanki, which allows us to programatically generate decks for Anki.
For now html2notes.js
is actually to create a new deck and note type, then import HTML files fetched in the former step directly into users' Anki with anki-connect API. We actually encountered some problems in this way, which has been discussed in #3 . It looks like hard to solve, so I'm thinking about taking genanki-js for the process of converting and importing notes. In that case, we can simply generate .apkg
packages and leave the task of importing to users.
This repo is actually named Generater
instead of an importing tool. Moreover, the most important is the issue previously mentioned could be avoided since generating apkg
files and manually importing them is way more steady than the whole steps of taking anki-connect API to connect with your opening Anki program and invoking those importing related methods