siMarkdownDirective Type documentation¶
TypeScript declaration¶
import { siMarkdownDirective } from '@siemens/element-ng/markdown';Installs component rendering for directives parsed by remark-directive.
siMarkdownDirective(directives: ReadonlyMap<string, TypeHandler>): SiMarkdownExtension
Installs component rendering for directives parsed by remark-directive.
-
directives:
ReadonlyMap<string, TypeHandler>¶
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 { SiMarkdownExtensionComponent } from '@siemens/element-ng/markdown';Interface an extension component must implement
-
Node to be rendered
-
Options passed to the component
-
The parent node
import type { UnifiedPlugin } from '@siemens/element-ng/markdown'; Except where otherwise noted, content on this site is licensed under MIT License.