The interface for a LaTeX typesetter.

interface ILatexTypesetter {
    mathParseOptions?: IRenderMime.ILatexTypesetter.IMathParseOptions;
    typeset(element: HTMLElement): void | Promise<void>;
}

Hierarchy (View Summary)

Properties

Methods

Properties

Options describing how math is recognized in the source text.

These options are shared with the Markdown pre-processing step (removeMath) so that hiding math from the Markdown parser and typesetting it stay consistent. When omitted, the default options are assumed, including a single $ delimiter for inline math.

Methods

  • Typeset a DOM element.

    Parameters

    • element: HTMLElement

      the DOM element to typeset. The typesetting may happen synchronously or asynchronously.

    Returns void | Promise<void>