lervag / apy

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

Changing a note type will fill in HTML and not markdown (even if it's semantically the same) #90

Closed camoz closed 3 months ago

camoz commented 4 months ago

I noticed that changing a note type will fill in the HTML and not the markdown in the new note, even if it's "semantically the same", i.e. the card has not been changed in Anki etc.

Is this intentional and perhaps difficult to achieve, or is it an oversight or regression?

(Btw, the idea of saving the markdown in the HTML data attribute and then comparing when editing the note is really neat!)

lervag commented 3 months ago

Sorry about the late response; the last few weeks I have been very busy.

(Btw, the idea of saving the markdown in the HTML data attribute and then comparing when editing the note is really neat!)

Thanks - to be honest, the idea was stolen from an Anki addon. I don't remember quite which right now, but I liked it and "stole" it. ;)

I noticed that changing a note type will fill in the HTML and not the markdown in the new note, even if it's "semantically the same", i.e. the card has not been changed in Anki etc.

Sorry, I think it's a bug - but I think it's fixed now.

camoz commented 3 months ago

Fix works here too, thanks!

lervag commented 3 months ago

Thanks, good to know!