ExternalDiagramDefinition
Unofficial
Definition for registering an external Mermaid diagram type.
Import:
import type { ExternalDiagramDefinition } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface ExternalDiagramDefinitionProperties
| 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. |