MAIDR JavaScript API
    Preparing search index...

    Interface MermaidAdapterOptions

    Options for createMaidrFromMermaid and the binding helpers.

    interface MermaidAdapterOptions {
        id?: string;
        title?: string;
        subtitle?: string;
        caption?: string;
        idPrefix?: string;
        language?: Locale;
    }
    Index

    Properties

    id?: string

    Unique ID for the MAIDR figure. Defaults to the SVG element's id.

    title?: string

    Figure title. Defaults to the diagram's own title, when it has one.

    subtitle?: string

    Figure subtitle. Defaults to a quadrant chart's quadrant names.

    caption?: string

    Figure caption. Defaults to the diagram's accessible description.

    idPrefix?: string

    The id the diagram was rendered under, which Mermaid prefixes its element ids with. Defaults to the SVG element's id; set it when the SVG was renamed after rendering, as Quarto does to a labelled diagram.

    language?: Locale

    The language of the words the adapter writes itself -- what a node is called, its kind, the names of its attributes, the words for a shape or a relation. What the diagram's author wrote is read as written.

    Defaults to the language MAIDR speaks to the reader: the one they chose in its settings, or else their browser's. A diagram converted in that language follows it when the reader changes it; one given a language here keeps it.