Skip to content

ExternalDiagramDefinition

Unofficial

Definition for registering an external Mermaid diagram type.

Import:

import type { ExternalDiagramDefinition } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ExternalDiagramDefinition

Properties

Property Type Description
id string Unique identifier for the diagram type.

Methods

Method Returns Description
detector(text) boolean Detect whether the given text matches this diagram type.
loader() Promise<DiagramDefinitionModule> Lazily load the diagram definition.