leqno and fleqn support (#1814)

* leqno support

* Add fleqn support

* Add tests

* Lint fix

* Add leqno and fleqn to website demo
This commit is contained in:
Erik Demaine
2019-01-29 04:40:17 -05:00
committed by ylemkimon
parent 58c36c6fdf
commit 7f778d1543
9 changed files with 82 additions and 12 deletions

View File

@@ -36,8 +36,8 @@
demoInput.value = data.code;
}
var katexOptions = ["displayMode", "throwOnError", "errorColor", "strict",
"macros"].map(function(id) {
var katexOptions = ["displayMode", "leqno", "fleqn", "throwOnError",
"errorColor", "strict", "macros"].map(function(id) {
var el = document.getElementById(id);
if (el.type === "checkbox") {
if (typeof data[id] === "boolean") {