A mermaid diagram manager with cache.

Implements

Constructors

Properties

_diagrams: LruCache<string, HTMLElement>
_themes: null | IThemeManager

Methods

  • Post-process to ensure mermaid diagrams contain only valid SVG and XHTML.

    Parameters

    • svg: string

    Returns string