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.
-
• trusted application configuration passed to Mermaid
Types Documentation¶
import type { SiMarkdownExtension } from '@siemens/element-ng/markdown';An extension to the si-markdown component
-
Special code type handlers to install
-
Directives
-
unifiedplugins to install -
Type handlers to install
types?:
TypeHandler[]¶
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
-
The component used to render the node
component:
Type<SiMarkdownExtensionComponent>Inherited from ComponentWithOptions<SiMarkdownExtensionComponent>¶ -
Options passed to the component
options?:
anyInherited from ComponentWithOptions<SiMarkdownExtensionComponent>¶ -
Type name
import type { UnifiedPlugin } from '@siemens/element-ng/markdown'; import type { SiMarkdownExtensionComponent } from '@siemens/element-ng/markdown';Interface an extension component must implement
-
Node to be rendered
-
Options passed to the component
-
The parent node
Except where otherwise noted, content on this site is licensed under MIT License.