Skip to content

Latest commit

 

History

History

autoanki-sync

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@autoanki/sync

This package can be used to sync the Anki notes obtained from @autoanki/core with an Anki profile using Anki-connect.

Features

  • 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.

How it works

Caveats

For Anki-Android users

HTML corruption

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>

See ankidroid/Anki-Android#3304.