Skip to main content

๐Ÿ‘‹ AnkiBridge Introduction

AnkiBridge is a plugin for Obsidian that allows seamless integration with the Anki spaced-repetition software.

You're highly encouraged to read through this documentation to get an understanding of how AnkiBridge works and pit-falls to avoid.

Alpha Software

Please note that AnkiBridge is still in the alpha stage. Polite feedback is much appreciated.

Once the features mentioned below in Upcoming Features have all been implemented AnkiBridge will enter a beta phase (versions 1.x.y).

AnkiBridge does contain portions of code that modify files in your vault. It could therefore delete data through a bug (though this should never happen). Having a recent backup of your data is strongly encouraged.

Featuresโ€‹

While AnkiBridge is still under active development, it already has a few handy features and is in use by me personally.

๐Ÿ“˜ Blueprintsโ€‹

Parsing is done using 'blueprints' allowing for easy customisation and extension.

Unlike other projects AnkiBridge uses a powerful PEG parser instead of a regex approach.
This makes parsing easier to debug and should make it very extensible too.

Directly in the Obsidian Vault you can specify:

  • Anki Tags
  • Anki Deck

Currently implemented blueprints:

  • ๐Ÿฅช Sandwich Blueprint with #anki/start, #anki/---, #anki/end
  • ๐Ÿ’ป BasicCodeBlock Blueprint with anki codeblocks

๐Ÿ“Š Renderingโ€‹

  • ๐Ÿงฎ Math rendering
  • ๐Ÿ–ผ Image rendering
  • ๐Ÿ”‰ Audio rendering
  • ๐Ÿ“น Video rendering
  • โ” Cloze deletion
  • โฌ‡ Standard Markdown rendering
  • ๐Ÿ”— Link rendering (with Obsidian URI support)
  • โš“ Linking to source from Anki

๐Ÿง  Intuitive usageโ€‹

AnkiBridge should be intuitive to use and its codebase should be clean and free of too many tricks.

๐Ÿ”ง Configurabilityโ€‹

Many of the features mentioned above can be enabled and disabled using the settings tab of the plugin.

๐Ÿ” Never lose dataโ€‹

Data is always stored in Obsidian and the syncing is just one-way. If a note is updated or changed in Obsidian, it will be reflected in Anki after the next sync.

You can still have flashcards that only exist in Anki.

This means that your Obsidian vault represents the truth and your Anki decks are always update to reflect the vault perfectly.

  • ๐Ÿšฎ Delete notes from Anki via the delete: true key
  • โžก Automatically moves cards to appropriate deck
  • ๐Ÿค– Automatically updates tags and field content when syncing

๐Ÿ’ช Other featuresโ€‹

  • ๐Ÿ—ƒ Default deck matching
  • ๐Ÿ“‚ Ignore folders
  • ๐Ÿ“ Ping connection
  • ๐Ÿ“ฆ Available through Community Plugins
  • ๐Ÿงช Unit testing of blueprints

Note: AnkiBridge considers the Obsidian Vault to be the 'ground truth'. Any changes to bridged notes in Anki will be reverted upon sync.

๐Ÿ”œ Upcoming Featuresโ€‹

  • ๐Ÿ‘ฉโ€๐Ÿ’ป Code syntax highlighting
  • ๐ŸŒ‰ Syncing of Mathjax preamples (advanced feature)
  • ๐Ÿ“„ (More) Documentation
  • ๐Ÿ“˜ More blueprints

๐Ÿ™ Supportโ€‹

If you're finding AnkiBridge useful and wish to show your appreciation, go have a gander at the ๐Ÿ™ Support page