mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
fix(Settings): use schema (#3375)
* refactor: don't repeat SettingsOptions * fix(Settings): use schema
This commit is contained in:
6
katex.js
6
katex.js
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
import ParseError from "./src/ParseError";
|
||||
import Settings from "./src/Settings";
|
||||
import Settings, {SETTINGS_SCHEMA} from "./src/Settings";
|
||||
|
||||
import {buildTree, buildHTMLTree} from "./src/buildTree";
|
||||
import parseTree from "./src/parseTree";
|
||||
@@ -156,6 +156,10 @@ export default {
|
||||
* KaTeX error, usually during parsing.
|
||||
*/
|
||||
ParseError,
|
||||
/**
|
||||
* The shema of Settings
|
||||
*/
|
||||
SETTINGS_SCHEMA,
|
||||
/**
|
||||
* Parses the given LaTeX into KaTeX's internal parse tree structure,
|
||||
* without rendering to HTML or MathML.
|
||||
|
Reference in New Issue
Block a user