Do display mode via settings instead of input string

This commit is contained in:
Martin von Gagern 2017-01-15 22:26:25 +01:00
parent d3402bcd30
commit e416b9cfe7

View File

@ -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);