One-way synchronization of flashcards from Logseq to Mochi
↓
- Syncs Logseq blocks tagged
#card
to Mochi - Converts Logseq clozes (
{{cloze}}
) to Mochi format - Supports
mochi-deck
andmochi-template
properties, for specifyng a custom deck or template (or falls back to a default deck) - Supports media attachments (with a 5MB limit imposed by Mochi)
- Multi-sided cards (just add extra children to the card block)
- Optionally:
- Include page titles in cards
- Include ancestor block context
- Delete orphaned Mochi cards
Logseq Mochi Sync uses Logseq Properties to pass structured information, like deck selection, tags, and template fields, to Mochi. Properties can be defined on the card itself, or on the card's ancestors, or at the page level.
Properties are merged in this order (later entries override earlier ones):
- Page properties (if "Include Page Properties" enabled)
- Ancestor block properties
- Current block properties (highest priority)
- Automatically injected
mochi-id
property (don't edit this one; it's used to ensure that Mochi remembers the card identity and memorization state, even if the content changes)
Property | Format | Description |
---|---|---|
mochi-deck |
Deck name string | Specifies which Mochi deck to use for the card |
mochi-tags |
Comma-separated list | Sets extra tags for the card in Mochi (#tags, other than #card, also work) |
mochi-template |
Template name string | Uses specified Mochi template for the card |
mochi-field-* |
Field values | Populates template fields (replace * with the field name from your template) |
mochi-include-page-title |
true/false | Overrides the global "render page title" setting for this card |
mochi-include-ancestors |
true/false | Overrides the global "render ancestors" setting for this card |
Basic usage:
- Card content
mochi-deck:: Chemistry 101
mochi-tags:: important, exam-material
Template usage:
- What's the capital of France?
mochi-template:: Capital City
mochi-field-City:: Paris
mochi-field-Population:: 2.1 million