mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 12:38:39 +00:00
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:
@@ -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>
|
||||
|
@@ -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] &&
|
||||
|
Reference in New Issue
Block a user