Skip to content

siMarkdownMermaid Type documentation

TypeScript declaration

import { siMarkdownMermaid } from '@siemens/element-ng/markdown/extensions/mermaid';

An extension to render Mermaid diagrams.

Options configure the shared Mermaid instance and are not isolated per Markdown component. Keep securityLevel: 'strict' for untrusted content and avoid mixing strict and permissive configurations. The integration trusts Mermaid's generated SVG output.

siMarkdownMermaid(options?: MermaidConfig): SiMarkdownExtension

An extension to render Mermaid diagrams.

Options configure the shared Mermaid instance and are not isolated per Markdown component. Keep securityLevel: 'strict' for untrusted content and avoid mixing strict and permissive configurations. The integration trusts Mermaid's generated SVG output.

Parameters

Types Documentation

import type { SiMarkdownExtension } from '@siemens/element-ng/markdown';

An extension to the si-markdown component

Properties
import type { PluginWithOptions } from '@siemens/element-ng/markdown';

Combination of unified plugin with options

Properties
import type { TypeHandler } from '@siemens/element-ng/markdown';

Type handler for a named type. This can be an AST node type, a code type, a directive name

Properties
import type { UnifiedPlugin } from '@siemens/element-ng/markdown';
import type { SiMarkdownExtensionComponent } from '@siemens/element-ng/markdown';

Interface an extension component must implement

Properties
import type { ComponentWithOptions } from '@siemens/element-ng/markdown';

A combination of a component and options passed to it during run-time

Properties

Except where otherwise noted, content on this site is licensed under MIT License.