diff --git a/main.js b/main.js index cad88cd23..70548e59d 100644 --- a/main.js +++ b/main.js @@ -9,7 +9,9 @@ window.startup = function() { function doDemo() { try { - katex.render("\\displaystyle{" + demoInput.value + "}", demoOutput); + katex.render(demoInput.value, demoOutput, { + displayMode: true + }); } catch(err) { while(demoOutput.lastChild) { demoOutput.removeChild(demoOutput.lastChild);