Mohamed Saleh97 downloadsExtend Markdown capabilities by adding inline fold, encapsulate text anywhere in the note, create spoilers, even flashcards for active recall.
Attach translations, definitions, and other context to ordinary text in Obsidian. A context item can either replace its text inline when activated or show its additional text in a popup.
Create a Translation context on bonjour with the detail hello:
[translation::bonjour|hello]
The delimiters are fixed implementation details. Inline Context hides them in the normal editing and reading experience where safe, while the Markdown file keeps a readable, portable representation.
Use the command palette to:
Context types provide presentation and organization only. Each type can have its own mode, shared style preset, icon, and visual treatment. Built-in styles include Ghost, Pill, Bracket, Underline, and Badge. You can create reusable custom styles once in Settings and apply them to multiple context types. The attached text remains a free-form textbox, so a Translation type does not need hard-coded language, pronunciation, or example fields.
The core experience focuses on context creation, editing, removal, natural cursor movement, inline replacement, and popup display. Flashcard scheduling, vault-wide search, shared definitions, and other larger learning features are planned separately.
npm install
npm run build
npm run typecheck
npm test
Requires Obsidian 1.13.0 or newer. The plugin keeps its existing manifest ID
(inline-fold) so users can upgrade without losing plugin data.
MIT