Expand description
Extract base64 data URI images from markdown and save as files.
Structs§
- Apply
Result - Result of applying an
ImageModeto markdown. - Extracted
Buffers - Result of extracting base64 images to memory buffers.
- Extraction
Result - Result of extracting images from markdown.
- Image
Buffer - An extracted image as an in-memory buffer.
- Pending
Remote Image - A remote image whose reference was rewritten to a local path by
ImageMode::Extractbut whose bytes still need to be downloaded. - Stripped
Result - Result of stripping base64 images.
Enums§
- Image
Mode - How the unified image pipeline should treat images in captured markdown.
Functions§
- apply_
image_ mode - Apply an
ImageModeto markdown — the single image-handling chokepoint. - extract_
and_ save_ images - Extract base64 data URI images from markdown, save them as files, and rewrite references to relative paths.
- extract_
base64_ to_ buffers - Extract base64 images from markdown into memory buffers without writing to disk. Intended for streaming into archives.
- has_
base64_ images - Check if markdown contains any base64 data URI images.
- strip_
base64_ images - Strip base64 data URI images from markdown, leaving a visible placeholder.