benwr / ankdown

Easily make Anki flash cards in markdown
MIT License
134 stars 38 forks source link

Reloading decks overwrites css changes #28

Open LuccaHellriegel opened 5 years ago

LuccaHellriegel commented 5 years ago

First of all, thanks for this addon and your help with my image issue. PDF -> Markdown -> Anki is sooo much more fun to work with.

As I am often iterating on my cards, I have to reimport the decks multiple times (because I want to keep all the cards managed by ankdown and not risk overwriting changes done in anki itself). However, everytime I reimport the decks, it overwrites my CSS changes to the Ankdown Card Type (I changed the font-size and the font itself as it was not really readable on my computer).

Is this a known issue?

Currently I just copy the affected CSS back into the card template once I reloaded the decks.

LuccaHellriegel commented 5 years ago

From looking at the source code of the Anki Addon, I see that the standard css is loaded each time because the Anki Addon does not support configuration currently, so ankdown itself falls back on the default config.

My workaround for now is to change the CSS in the ankdown.py file.