/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ export type MathFormat = 'latex' | 'mathml'; export type MathDisplay = 'block' | 'inline'; export type MathAlign = 'left' | 'center' | 'right'; export interface IMathData { format: MathFormat; display: MathDisplay; source: string; background?: string; textColor?: string; borderColor?: string; align?: MathAlign; wrap?: boolean; width?: number; } export interface IMathSymbol { label: string; latex: string; mathml: string; } export interface IMathTemplate { title: string; latex: string; mathml: string; } export interface IMathRenderResult { svg: string; error?: string; } export interface IMathJax { tex2svg(tex: string, options?: { display?: boolean; }): HTMLElement; mathml2svg(mml: string, options?: { display?: boolean; }): HTMLElement; startup: { promise: Promise; }; texReset?: () => void; }