Generate image caption easily. Completely markdown-based. Compatible with obsidian publish and any markdown editor.
demo: https://www.youtube.com/watch?v=dee_OzcibLI
Caution
This plugin only works with external images. I don't use local image so I have no intention to support. But I am open to PR.
%% caption ![alt](src) %%
%% lightbox ![alt](src) %%
%% lightbox-{group} ![alt](src) %%
then it will generate <figure>
element with a <figcaption>
element inside on command generate image caption on current file
.
Tip
You will want to use this with custom save plugin to generate image caption on save.
The plugin will recognise the syntax and then check if there is a figure element below it. If not, it will generate one. If yes, the figure element will be replaced by generated result.
You can install it on community plugin store.
- install the BRAT plugin
- go to the plugin option, add beta plugin, copy and paste the link of this repo
- the plugin will automatically appear in the list of installed community plugins, enabled this plugin
- cd to
.obsidian/plugins
- git clone this repo
cd obsidian-tag-generator && bun install && bun run build
- there you go 🎉
- cd to
.obsidian/plugins/obsidian-tag-generator
git pull
bun install && bun run build
- there you go 🎉
- if you want to contribute, please first open github issue.
- you can style your caption using css
If you are enjoying this plugin then please support my work and enthusiasm by buying me a coffee on https://www.buymeacoffee.com/yomaru.