Skip to content

Commit

Permalink
feat: __defineFunction API exposing internal defineFunction (#3805)
Browse files Browse the repository at this point in the history
For making KaTeX libraries.  Fixes #3756
  • Loading branch information
edemaine committed Apr 17, 2023
1 parent 8186945 commit c7b1f84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions katex.js
Expand Up @@ -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';

Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit c7b1f84

Please sign in to comment.