This package can be used to sync the Anki notes obtained from @autoanki/core with an Anki profile using Anki-connect.
- Note creation
- Note deletion
- Bidirectional sync (if the source supports single-note granularity):
- Note fields
- Note tags
- Note's deck
- Sync conflict reporting and manual or configurable automatic resolution.
TL;DR; Disable the option Advanced > Replace new lines with HTML
.
When you edit a note using Anki-Android, Anki-Android automatically converts newlines into <br/>
, with leads to HTML corruption.
E.g. given the following note field content:
<p id="my-id"
class="my-class">
My content.
</p>
If you edit this note field using Anki-Android and insert something like:
<p id="my-id"
class="my-class">
My content. Additional content.
</p>
When you press confirm, Anki-Android transform the HTML into:
<p id="my-id"<br\> class="my-class"><br\> My content. Additional content.<br\></p>