Get a pre-cached mermaid figure.
This primarily exists for the needs of marked, which supports async node
visitors, but not async rendering.
Provide a code block with the mermaid source.
Get the parser message element from a failed parse.
This doesn't do much of anything if the text is successfully parsed.
Extract extra attributes to add to a generated figure.
Provide and cache a fully-rendered element, checking the cache first.
Attempt a raw rendering of mermaid to an SVG string, extracting some metadata.
Staticclean
A mermaid diagram manager with cache.