Closed DHNishi closed 3 years ago
I think this is a duplicate (no pun intended) of https://github.com/jasonwilliams/anki/issues/13
Certain characters cause he duplicate check to fail on AnkiConnect. I think it’s because we htmlEncode the final output and that causes problems.
Closing as duplicate
I tried creating a MD file with the following text:
I copied the questions directly our of the README.md. The "What's the Markdown?" question gets duplicated every time I run Anki: Send to Deck.
A quick diff check of the default notes's deck's JSON files for the questions shows that the duplicated questions only differ in the "id" field.
A minimal repro of this bug can be found by using the following test deck:
The first question "Test'" will be duplicated but the second question "Test" will not. It looks like the apostrophe throws off the duplicate check somewhere and causes it to be re-added every time the question set is added to Anki.
Inspecting the generated card JSON file, I suspect that this is because the apostrophe converts to \'\; which triggers https://github.com/FooSoft/anki-connect/issues/194 but I haven't done any deeper dive into this yet.