Images, Sizing & Image Hosting
Where pasted screenshots land, how to control their display size, and how to upload to an image host.
1. What happens when you paste
Copy a screenshot to the clipboard, place the caret in a note, and press Ctrl/⌘ + V (or drag an image file into the window) — SoloMD writes the image next to your note and inserts a relative Markdown link (automatically encoding spaces and normalizing Windows backslashes):
my-folder/
├── note.md ← you pasted here
└── _assets/
└── image-20261102-093012.png 2. Three attachment folder modes
Open Settings → Writing and choose “Where to save pasted/dropped images”:
| Mode | Images go to | Best for |
|---|---|---|
| Shared (default) | One folder per directory — _assets/ by default, or rename it to images (or any name) in the field below. | Simple vaults; _assets is hidden in the file tree by default to reduce clutter. |
| Per-file | <note>.assets/ next to each note (e.g. foo.md gets foo.assets/). | Keeping each note self-contained; renaming foo.md in the file tree renames foo.assets/ and rewrites links automatically. |
| Custom (Typora-style) | A path template supporting ${filename}, such as ./images/${filename}/ or ../attachments/. | Vaults migrated from Typora. |
3. Default pasted image width & right-click resizing
- Default width preset: in Settings → Writing → Default pasted image width, set a default scale (e.g.
50%,67%,80%, or a pixel width) so high-DPI screenshots don’t overwhelm the page. - Right-click resize & Copy Image: right-click any image in the editor to resize it on the spot (25% / 50% / 67% / 80% / 100%) or copy the bitmap back to the system clipboard.
- Side-by-side inline images: multiple inline
<img>tags on the same line stay side by side in both Live Edit and Preview.
4. Image hosting (PicGo / SM.MS / S3 / R2 / GitHub)
Configure Settings → Image Upload to upload images to PicGo, SM.MS, S3-compatible object storage (AWS S3, Cloudflare R2, MinIO, OSS, COS), or a GitHub repository. You can upload automatically on paste or batch-upload local images in the current note from the command palette.
5. Anti-hotlink external images & Android SAF support
- Anti-hotlink
no-referrer: SoloMD setsreferrerpolicy="no-referrer"before loading external images and decodes HTML-escaped&query strings, so Gitee, signed cloud URLs, and anti-hotlink image hosts render cleanly across Live Edit and Preview. - Android & iOS: pick photos from the system picker on Android SAF vaults and resolve relative paths (
./pic/foo.png,../assets/bar.jpg) seamlessly in Live Edit, Preview, and PDF/DOCX exports.
Comments & feedback
Comments live on GitHub Discussions — sign in once with your GitHub account.
Comments load from GitHub Discussions. If you see this message instead, the maintainer has not finished the one-time giscus.app setup yet — see web/COMMUNITY-SETUP.md.
Open on GitHub Discussions →