mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 13:38:39 +00:00
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:
@@ -131,6 +131,14 @@
|
||||
<td><label for="displayMode">displayMode</label></td>
|
||||
<td><input type="checkbox" id="displayMode" checked/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="leqno">leqno</label></td>
|
||||
<td><input type="checkbox" id="leqno"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="fleqn">fleqn</label></td>
|
||||
<td><input type="checkbox" id="fleqn"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="throwOnError">throwOnError</label></td>
|
||||
<td><input type="checkbox" id="throwOnError" checked/></td>
|
||||
|
@@ -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") {
|
||||
|
Reference in New Issue
Block a user