anonymouse6645 downloadsExports the active note as a single markdown file with every image embed inlined as a base64 data URI. Vault note stays untouched.
Export the active note as a single, self-contained markdown file with every image embed inlined as a base64 data URI one command, one native save dialog, done.
![[image.png]] and
 syntax) via Obsidian's metadata cachedata:image/<type>;base64,... URI in place of the
embedI use Obsidian mostly to prepare writeups for the machines and challenges I solve. I publish these writeups on my website, which uses a 𝗠𝗼𝗻𝗴𝗼𝗗𝗕-𝗯𝗮𝗰𝗸𝗲𝗱 𝗖𝗠𝗦 for storage. Storing images directly in 𝗠𝗼𝗻𝗴𝗼𝗗𝗕 requires a lot of space, and a few images are enough to blow past a 500MB tier.
Therefore, I designed my website to intercept base64 data URIs in uploaded markdown in a public GitHub repo and rewrite the links to a 𝗷𝘀𝗗𝗲𝗹𝗶𝘃𝗿 𝗖𝗗𝗡 𝗨𝗥𝗟 before the markdown ever touches the database.
The missing piece was getting from "writeup with normal image embeds in Obsidian" to "one flat markdown file with base64 inlined" without doing it by hand. So I built a plugin for it. Hope its useful for y'all.
Settings → Community Plugins → Browse → search "Export as Base64 MD" → Install → Enable.
BRAT: Add a beta plugin for testing.Ctrl/Cmd+P).
Want a hotkey? Bind one yourself in Settings → Hotkeys. the plugin
doesn't ship a default, so it won't conflict with anything you've
already set..md file with all images inlined lands where you choose.@electron/remote and Node's fs, unavailable on mobile.MIT