Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Anki Cloze Deletion

leonfroschauerleonfroschauer1 downloads

Creates Anki-compatible cloze deletions scoped to card blocks between horizontal rules.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

A lightweight Obsidian plugin that brings Anki-style cloze deletion shortcuts ({{cN::text}}) to your markdown notes, scoped specifically to individual flashcard blocks.

Concept & Benefits

A cloze deletion is a fill-in-the-blank flashcard. Instead of formulating explicit question-and-answer pairs, you mask key terms inside a coherent statement or definition.

  • Faster Creation: Mask key concepts directly without inventing artificial question/answer pairs.
  • Contextual Learning: Learn facts embedded within their natural context.
  • Efficiency: Generate multiple flashcards from a single block of text by incrementing the cloze index.

Card Structure Requirement

Cards must be enclosed between horizontal rules (---):

---
Cloze
This is an example {{c1::cloze}} card. You can {{c2::hide}} different text parts {{c2::with ease}}.

---
ADDED: Cloze %%3l99il%%
This is another {{c1::example}} cloze card.

---
  • Scoped Indexing: Cloze numbers (c1, c2, ...) are counted independently within each --- ... --- block. Every new card block starts at c1.
  • Boundary Validation: Triggering a cloze shortcut outside a card block displays a warning notice and leaves text unchanged.
  • Frontmatter Safety: YAML frontmatter (the --- block at the start of a note) is automatically detected and protected.
  • Nested Cloze Protection: Multi-layer protection prevents creating nested clozes (e.g. {{c1::can {{c2::{{c3::happen}}}}}}), which are invalid in Anki.

Syntax & Shortcuts

Syntax: {{cN::Text}} where N is the card index.

Both commands support selected text (wraps the selection) and empty selection (inserts {{cN::}} with the cursor placed inside ready to type).

1. Cloze Deletion (new card)

  • Default Shortcut: Ctrl + Shift + C (or Cmd + Shift + C on macOS)
  • Behavior: Increments the highest existing cloze number inside the current card block by 1 (e.g., from c1 to c2, or starts at c1 if none exist).
  • Result: Wraps the text in {{cN+1::...}}, generating a separate flashcard in Anki.

2. Cloze Deletion (same card)

  • Default Shortcut: Ctrl + Alt + C (or Cmd + Option + C on macOS)
  • Behavior: Reuses the highest existing cloze number inside the current card block (defaults to c1 if none exist).
  • Result: Wraps the text in {{cN::...}}. All clozes sharing the same number in a card block are tested together.

Settings & Customization

Shortcuts are registered natively with Obsidian. You can customize them anytime in Settings -> Hotkeys by searching for Anki Cloze.

Installation

Community Plugins (Recommended once listed)

  1. Open Settings -> Community plugins and turn off Restricted mode.
  2. Search for Anki Cloze Deletion and click Install, then Enable.

Manual Installation

  1. Download main.js and manifest.json from the latest GitHub Release.
  2. Create the folder <Vault>/.obsidian/plugins/anki-cloze/ in your Obsidian vault.
  3. Place manifest.json and main.js inside that folder.
  4. Reload Obsidian or reload plugins under Settings -> Community plugins, then toggle Anki Cloze Deletion on.
HealthExcellent
ReviewPassed
About
Add Anki-style cloze deletions ({{cN::text}}) to your Markdown and scope them to individual flashcard blocks delimited by ---. Manage per-card cloze numbering, protect YAML frontmatter, warn on edits outside a card, and prevent nested clozes.
FlashcardsEditing
Details
Current version
1.0.2
Last updated
5 hours ago
Created
24 hours ago
Updates
3 releases
Downloads
1
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
leonfroschauerleonfroschauer
GitHubleon-3
  1. Community
  2. Plugins
  3. Flashcards
  4. Anki Cloze Deletion

Related plugins

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Advanced Tables

Improved table navigation, formatting, and manipulation.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

Hover Editor

Transform the Page Preview hover popover into a fully working editor instance.

Outliner

Work with your lists like in Workflowy or Roam Research.

Spaced Repetition

Fight the forgetting curve by reviewing flashcards & entire notes.

CSS Editor

Edit CSS snippet files.