diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index e4ca78d44..cb9bd3f97 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -256,3 +256,5 @@ Tony Grosinger @tgrosinger 2015/10/03 Antaeus Feldspar @afeldspar 2015/10/20 Soeren Enevoldsen, @senevoldsen90, 2015/10/09 + +Santiago Pelufo, @spelufo, 2015/12/18 diff --git a/plugins/tiddlywiki/katex/wrapper.js b/plugins/tiddlywiki/katex/wrapper.js index 2f36d7ee4..ec35f5e3c 100644 --- a/plugins/tiddlywiki/katex/wrapper.js +++ b/plugins/tiddlywiki/katex/wrapper.js @@ -34,9 +34,10 @@ KaTeXWidget.prototype.render = function(parent,nextSibling) { this.execute(); // Get the source text var text = this.getAttribute("text",this.parseTreeNode.text || ""); + var displayMode = this.getAttribute("displayMode",this.parseTreeNode.displayMode || "false") === "true"; // Render it into a span var span = this.document.createElement("span"), - options = {throwOnError: false}; + options = {throwOnError: false, displayMode: displayMode}; try { if(!this.document.isTiddlyWikiFakeDom) { katex.render(text,span,options);