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§
Structs§
- Mermaid
Payload - The result of embedding or extracting Mermaid source.