leonfroschauer2 downloadsRenders embedded Anki clozes, card type buttons (Cloze, Image Cloze), Extra Question Line tags (EQL), and synchronized card status in Live Preview and Reading View.
Anki Card Styling provides clean, native visual formatting for Anki flashcards directly in Obsidian. It automatically styles clozes, card type indicators, question line tags, and card synchronization states in both Live Preview and Reading View without breaking raw Markdown compatibility.
| Markdown Source | Rendered in Live Preview & Reading View |
|---|---|
{{c1::Hypertrophy}} |
c1 Hypertrophy |
{{c2::Mitochondria::Powerhouse}} |
c2 Mitochondria (Powerhouse) |
Cloze (after ---) |
Cloze button badge |
Image Cloze (after ---) |
Image Cloze button badge |
EQL: P(A|B) = ... |
EQL P(A|B) = ... tag badge |
ADDED: Card content... |
Green status gutter bar alongside the card |
DELETED: Obsolete card... |
Red status gutter bar alongside the card |
Interactive Cloze Deletions
{{c1::answer}} and {{c1::answer::hint}} as styled pill badges with colored underlines.{{c1::...}} or {{01::...}}).$...$ and $$...$$).Card Type & Header Badges
Cloze and Image Cloze on card header lines into rounded button badges.EQL: (Extra Question Line) prefixes into distinct pill tags.Real-Time Status Gutter Bars (ADDED / DELETED)
ADDED: (active or synced cards).DELETED: (or DELTED:) (flagged for removal).Smart Focus Dimming
Status Bar Card Counter
Anki: 5 cards (4 added, 1 deleted)).Universal Markdown Support
---, ___, ***).Cards are separated by standard Markdown horizontal rules (---). Status tags and card types are placed right after the divider:
---
Cloze
ADDED: What is the main driver of muscle protein synthesis?
EQL: Resistance training and adequate protein intake.
The primary mechanism is {{c1::mechanical tension}} signaling through {{c2::mTORC1::signaling pathway}}.
---
DELETED: Old obsolete definition %%card-id-1234%%
This card has been flagged for deletion during the next sync.
---
Image Cloze
ADDED: Identify the indicated structure:
![[Brain-Anatomy.png]]
---
Standard note content continues here outside card blocks...
Settings can be customized under Settings > Community plugins > Anki Card Styling:
| Setting | Default | Description |
|---|---|---|
| Cloze deletion highlighting | On | Formats {{c1::...}} as pill badges and underlines; reveals raw syntax on cursor focus. |
| Card status highlighting | On | Displays vertical side gutter bars (green for ADDED, red for DELETED). |
| Dim inactive cards | On | Subtly dims inactive cards until hovered or selected. |
| Card type badge highlighting | On | Renders Cloze and Image Cloze on header lines as rounded badges. |
| Extra Question Line tag highlighting | On | Renders EQL: prefixes as styled pill tags. |
| Status bar card counter | On | Displays real-time card counts in Obsidian's bottom status bar. |
main.js, manifest.json, and styles.css from the latest GitHub Release.anki-card-styling in your vault's plugin directory:<Vault>/.obsidian/plugins/anki-card-styling/
main.js, manifest.json, and styles.css into that folder.Ctrl+R / Cmd+R) and enable Anki Card Styling in Settings > Community plugins.git clone https://github.com/leon-3/Obsidian-Anki-Card-Highlighting.git
cd Obsidian-Anki-Card-Highlighting
npm install
npm run build