siMarkdownMathKaTeX Type documentation¶
TypeScript declaration¶
import { siMarkdownMathKaTeX } from '@siemens/element-ng/markdown/extensions/katex';An extension to render LaTeX math expressions using KaTeX. Uses remark-math to parse the expressions inside the markdown document.
Returns: extension for SiMarkdownOption.installExtension()
siMarkdownMathKaTeX(parseOptions?: ToOptions, katexOptions?: KatexOptions): SiMarkdownExtension
An extension to render LaTeX math expressions using KaTeX. Uses remark-math to parse the expressions inside the markdown document.
Returns: extension for SiMarkdownOption.installExtension()
-
• options passed to
remark-math -
• options passed to
katex. Keep the defaulttrust: falsefor untrusted expressions. Do not settrust: trueunless all expressions rendered with that configuration come from sources you fully trust. For untrusted expressions that require specific commands, use a narrowly scopedtrustcallback that validates commands and their arguments, including URLs.
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.