Enable a MathML option in the KaTeX demo. (#2371)

* Enable a MathML option in the KaTeX demo.

* Add `output` to `katexOptions`
This commit is contained in:
Ron Kok
2020-08-02 10:57:19 -07:00
committed by GitHub
parent 903b459ca4
commit e3c01376c8
2 changed files with 11 additions and 1 deletions

View File

@@ -163,6 +163,16 @@
</select>
</td>
</tr>
<tr>
<td><label for="output">output</label></td>
<td>
<select id="output">
<option value="htmlAndMathml" selected>htmlAndMathml</option>
<option value="html">html</html>
<option value="mathml">mathml</option>
</select>
</td>
</tr>
<tr>
<td><label for="trust">trust</label></td>
<td><input type="checkbox" id="trust"/></td>

View File

@@ -48,7 +48,7 @@ window.WebFontConfig = {
}
var katexOptions = ["displayMode", "leqno", "fleqn", "throwOnError",
"errorColor", "strict", "trust", "macros"].map(function(id) {
"errorColor", "strict", "output", "trust", "macros"].map(function(id) {
var el = document.getElementById(id);
if (el.type === "checkbox") {
if (typeof data[id] === "boolean" && !(id === "trust" && data[id] &&