mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-17 15:21:22 +00:00
Update KaTeX wrapper to support operation under Node.js
Now we can generate static HTML containing mathematical typesetting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user