feat: __defineFunction API exposing internal defineFunction (#3805)

For making KaTeX libraries.  Fixes #3756
This commit is contained in:
Erik Demaine
2023-04-17 13:49:22 -04:00
committed by GitHub
parent 818694544f
commit c7b1f84b78

View File

@@ -28,6 +28,7 @@ import type {AnyParseNode} from "./src/parseNode";
import type {DomSpan} from "./src/domTree";
import {defineSymbol} from './src/symbols';
import defineFunction from './src/defineFunction';
import defineMacro from './src/defineMacro';
import {setFontMetrics} from './src/fontMetrics';
@@ -196,6 +197,12 @@ export default {
* adds a new symbol to builtin symbols table
*/
__defineSymbol: defineSymbol,
/**
* adds a new function to builtin function list,
* which directly produce parse tree elements
* and have their own html/mathml builders
*/
__defineFunction: defineFunction,
/**
* adds a new macro to builtin macro list
*/