fix(Settings): use schema (#3375)

* refactor: don't repeat SettingsOptions

* fix(Settings): use schema
This commit is contained in:
ylemkimon
2021-10-31 04:41:00 +09:00
committed by GitHub
parent 23b3950f7a
commit b58a43212e
3 changed files with 205 additions and 79 deletions

View File

@@ -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.