mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
feat: __defineFunction API exposing internal defineFunction (#3805)
For making KaTeX libraries. Fixes #3756
This commit is contained in:
7
katex.js
7
katex.js
@@ -28,6 +28,7 @@ import type {AnyParseNode} from "./src/parseNode";
|
|||||||
import type {DomSpan} from "./src/domTree";
|
import type {DomSpan} from "./src/domTree";
|
||||||
|
|
||||||
import {defineSymbol} from './src/symbols';
|
import {defineSymbol} from './src/symbols';
|
||||||
|
import defineFunction from './src/defineFunction';
|
||||||
import defineMacro from './src/defineMacro';
|
import defineMacro from './src/defineMacro';
|
||||||
import {setFontMetrics} from './src/fontMetrics';
|
import {setFontMetrics} from './src/fontMetrics';
|
||||||
|
|
||||||
@@ -196,6 +197,12 @@ export default {
|
|||||||
* adds a new symbol to builtin symbols table
|
* adds a new symbol to builtin symbols table
|
||||||
*/
|
*/
|
||||||
__defineSymbol: defineSymbol,
|
__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
|
* adds a new macro to builtin macro list
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user