Update KaTeX wrapper to support operation under Node.js

Now we can generate static HTML containing mathematical typesetting
This commit is contained in:
Jermolene
2014-10-06 21:20:19 +01:00
parent cbe2a53d6a
commit 63c174d7ed
5 changed files with 18 additions and 7 deletions
+3 -1
View File
@@ -143,7 +143,9 @@ Object.defineProperty(TW_Element.prototype, "outerHTML", {
for(var s in this.style) {
style.push(s + ":" + this.style[s] + ";");
}
output.push(" style='",style.join(""),"'")
if(style.length > 0) {
output.push(" style='",style.join(""),"'")
}
}
output.push(">");
if($tw.config.htmlVoidElements.indexOf(this.tag) === -1) {