Skip to content

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()

Parameters
  • • options passed to remark-math

    parseOptions ? : ToOptions

  • • options passed to katex. Keep the default trust: false for untrusted expressions. Do not set trust: true unless all expressions rendered with that configuration come from sources you fully trust. For untrusted expressions that require specific commands, use a narrowly scoped trust callback that validates commands and their arguments, including URLs.

    katexOptions ? : KatexOptions

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.