From e416b9cfe747bf2e45de4e8d58bf34e902d44bca Mon Sep 17 00:00:00 2001 From: Martin von Gagern Date: Sun, 15 Jan 2017 22:26:25 +0100 Subject: [PATCH] Do display mode via settings instead of input string --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);