Do display mode via settings instead of input string
This commit is contained in:
parent
d3402bcd30
commit
e416b9cfe7
4
main.js
4
main.js
|
@ -9,7 +9,9 @@ window.startup = function() {
|
||||||
|
|
||||||
function doDemo() {
|
function doDemo() {
|
||||||
try {
|
try {
|
||||||
katex.render("\\displaystyle{" + demoInput.value + "}", demoOutput);
|
katex.render(demoInput.value, demoOutput, {
|
||||||
|
displayMode: true
|
||||||
|
});
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
while(demoOutput.lastChild) {
|
while(demoOutput.lastChild) {
|
||||||
demoOutput.removeChild(demoOutput.lastChild);
|
demoOutput.removeChild(demoOutput.lastChild);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user