--markdown-embed-content
- CLI
- --markdown-embed-content
Embeds images in Markdown output as data: URIs, so the document needs no access to the original site.
Captured Images
Images are the ones the browser fetched while rendering, so authentication, cookies and blocking apply. An image that was blocked, failed, is not an image, or is larger than --archive-body-size-limit keeps its absolute URL.
Example
zshot -f page.md \
--markdown-embed-content \
https://zshot-cli.com/example_assets/gazette/{
"url": "https://zshot-cli.com/example_assets/gazette/",
"output_type": "markdown",
"markdown_embed_content": true
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/gazette/","output_type":"markdown","markdown_embed_content":true}' \
-o page.md