mathlive
Version:
A web component for math input
39 lines (38 loc) • 1.32 kB
TypeScript
/* 0.98.3 */
/**
*
* Use MathLive to render and edit mathematical formulas.
*
*
* @example
* <script type="module">
* // Load the `MathLive` module from a CDN
* import { convertLatexToSpeakableText } from 'https://unpkg.com/mathlive?module';
*
* console.log(convertLatexToSpeakableText('e^{i\\pi}+1=0'));
* </script>
*
* @packageDocumentation MathLive SDK Reference 0.98.3
* @version 0.98.3
*
*/
import type { VirtualKeyboardOptions } from './virtual-keyboard';
import type { VirtualKeyboardInterface } from './virtual-keyboard';
import type { StaticRenderOptions } from './options';
export * from './commands';
export * from './core-types';
export * from './options';
export * from './mathfield';
export * from './mathfield-element';
export * from './mathlive-ssr';
export * from './virtual-keyboard';
export declare function makeSharedVirtualKeyboard(options?: Partial<VirtualKeyboardOptions>): VirtualKeyboardInterface & EventTarget;
export declare function renderMathInDocument(options?: StaticRenderOptions): void;
export declare function renderMathInElement(element: string | HTMLElement, options?: StaticRenderOptions): void;
export declare const version: {
mathlive: string;
};
declare global {
interface Window {
mathVirtualKeyboard: VirtualKeyboardInterface & EventTarget;
}
}