pub enum ImageMode {
Default,
Embed,
Extract {
dir: PathBuf,
subdir: String,
},
}Expand description
How the unified image pipeline should treat images in captured markdown.
This is the single chokepoint every CLI/server capture path routes through, so the same flag produces the same result regardless of capture method (browser vs API, JS vs Rust). See issue #112.
Variants§
Default
Default --format markdown contract: keep remote URLs as direct
links, and strip inline base64 data URIs (which have no remote URL to
restore) down to a visible placeholder. No images/ folder is written
and no multi-megabyte base64 blob is silently kept inline.
Embed
--embed-images: keep base64 data URIs inline so the output is a single
self-contained file.
Extract
--extract-images: extract base64 images to files under dir/subdir,
and rewrite remote image references to the same local subdir/ paths
(the remote bytes are downloaded by the caller — see pending_remote).