jupyterlab-emrys
Version:
A computational environment for Jupyter. Powered by Emrys
21 lines (20 loc) • 654 B
TypeScript
/**
* Break up the text into its component parts and search
* through them for math delimiters, braces, linebreaks, etc.
* Math delimiters must match and braces must balance.
* Don't allow math to pass through a double linebreak
* (which will be a paragraph).
*/
export declare function removeMath(text: string): {
text: string;
math: string[];
};
/**
* Put back the math strings that were saved,
* and clear the math array (no need to keep it around).
*/
export declare function replaceMath(text: string, math: string[]): string;
/**
* Typeset the math in a node.
*/
export declare function typeset(node: HTMLElement): void;