Skip to main content

Crate scrybe_mermaid

Crate scrybe_mermaid 

Source
Expand description

scrybe-mermaid — standalone PNG iTXt codec.

Embeds Mermaid diagram source as an iTXt metadata chunk inside a PNG. The PNG is fully valid; any viewer shows the rendered image. The source travels with the image and can be extracted later.

§Codec format

iTXt chunk key: scrybe-mermaid Value: JSON { "source": "<mermaid source>", "sha256": "<hex>" }

Re-exports§

pub use codec::embed;
pub use codec::extract;
pub use error::MermaidError;

Modules§

codec
PNG iTXt embed/extract for Mermaid source.
error

Structs§

MermaidPayload
The result of embedding or extracting Mermaid source.