kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Add support for MathML namespace
It doesn't actually work, though, which is weird, since SVG works just fine using the same mechanismprint-window-tiddler
rodzic
c4d7401f02
commit
83f85cad7d
|
@ -51,7 +51,8 @@ var ElementRenderer = function(renderTree,parentRenderer,parseTreeNode) {
|
||||||
}
|
}
|
||||||
// Select the namespace for the tag
|
// Select the namespace for the tag
|
||||||
var tagNameSpaces = {
|
var tagNameSpaces = {
|
||||||
svg: "http://www.w3.org/2000/svg"
|
svg: "http://www.w3.org/2000/svg",
|
||||||
|
math: "http://www.w3.org/1998/Math/MathML"
|
||||||
};
|
};
|
||||||
this.namespace = tagNameSpaces[this.parseTreeNode.tag];
|
this.namespace = tagNameSpaces[this.parseTreeNode.tag];
|
||||||
if(this.namespace) {
|
if(this.namespace) {
|
||||||
|
|
Ładowanie…
Reference in New Issue