/* 0.4.1 */ /** * Server-side rendering exports. * * These functions do not require a DOM environment and can * be used from a server-side environment. * */ import '../core/math-environment'; import '../latex-commands/definitions'; import { Expression } from './core-types'; import type { LatexSyntaxError, ParseMode } from './core-types'; import '../core/modes'; import { LayoutOptions } from './options'; /** * Convert a LaTeX string to a string of HTML markup. * * :::info[Note] * * This function does not interact with the DOM. It does not load fonts or * inject stylesheets in the document. It can safely be used on the server side. * ::: * * To get the output of this function to correctly display * in a document, use the mathlive static style sheet by adding the following * to the `
` of the document: * * ```html * * ``` * * * @param text A string of valid LaTeX. It does not have to start * with a mode token such as `$$` or `\(`. * * @param options.defaultMode If `"displaystyle"` the "display" mode of TeX * is used to typeset the formula, which is most appropriate for formulas that are * displayed in a standalone block. * * If `"textstyle"` is used, the "text" mode of TeX is used, which is most * appropriate when displaying math "inline" with other text (on the same line). * * @category Conversion * @keywords convert, latex, markup */ export declare function convertLatexToMarkup(text: string, options?: Partial