bcs386 downloadsShow elegant captions under images in both Live Preview and Reading Mode.
English | 简体中文
Show elegant, customizable captions under images in both Live Preview (Editing) and Reading Mode in Obsidian. Fully supports standard Markdown images, Wiki embeds, and external image hosts.

 and Obsidian Wiki links ![[image.png|alias]].|300, |200x300) to extract only the pure caption text. If only size is specified (e.g., ![[image.png|300]]), no caption is displayed.:has() parent selector to automatically correct parent Flexbox layout (flex-direction: column) when captions are injected. No layout shifting, and zero overlapping.activeDocument and context-aware elements instead of global document. Zero crashes when moving tabs to separate windows.wk image caption.main.js, manifest.json, and styles.css.<vault>/.obsidian/plugins/.wk-image-caption and paste the downloaded files inside.# Show caption
![[landscape.png|A majestic view of the Swiss Alps]]
# Show resized image with caption (strips the size automatically)
![[landscape.png|Snowy mountain peaks|300]]
# Resize only (no caption shown)
![[landscape.png|400]]
# Local image

# External image host

Contributions are welcome! If you want to build this plugin from source:
npm install
npm run dev
npm run build
This plugin is licensed under the MIT License.
在 Obsidian 的编辑模式(Live Preview)和阅读模式下为图片显示优雅、可定制的说明文字(Caption)。支持标准 Markdown 图片、Wiki 嵌入图片以及外部图床图片。
 及 Wiki 内链 ![[image.png|别名]]。|300 或 |200x300),完美提取文字部分作为说明。若仅指定了尺寸,则保持界面清爽,不生成空白说明。:has() 伪类关系选择器,仅在容器内含有说明文字时,动态将父 Flex 容器翻转为垂直排列(column),杜绝文字错位挤压到图片右侧的排版痛点。wk image caption。main.js、manifest.json 和 styles.css。<vault>/.obsidian/plugins/。wk-image-caption 的文件夹,将这三个文件放进去。