Make maligngroup and malignmark be self-closing in MathML input, and make them produce no output in SVG mode. Resolves issue #1233.

This commit is contained in:
Davide P. Cervone 2015-08-09 15:07:42 -04:00
parent 99d32c7416
commit 3f4c47b4d7
2 changed files with 18 additions and 2 deletions

View File

@ -351,6 +351,8 @@
MML.mspace.Augment({mmlSelfClosing: true});
MML.none.Augment({mmlSelfClosing: true});
MML.mprescripts.Augment({mmlSelfClosing:true});
MML.maligngroup.Augment({mmlSelfClosing:true});
MML.malignmark.Augment({mmlSelfClosing:true});
}
});

View File

@ -1402,6 +1402,12 @@
SVGlineBreaks: function () {return false}
},{
SVGemptySVG: function () {
var svg = this.SVG();
svg.Clean();
this.SVGsaveData(svg);
return svg;
},
SVGautoload: function () {
var file = SVG.autoloadDir+"/"+this.type+".js";
HUB.RestartAfter(AJAX.Require(file));
@ -2142,6 +2148,14 @@
}
});
//
// Make sure these don't generate output
//
MML.maligngroup.Augment({toSVG: MML.mbase.SVGemptySVG});
MML.malignmark.Augment({toSVG: MML.mbase.SVGemptySVG});
MML.mprescripts.Augment({toSVG: MML.mbase.SVGemptySVG});
MML.none.Augment({toSVG: MML.mbase.SVGemptySVG});
//
// Loading isn't complete until the element jax is modified,
// but can't call loadComplete within the callback for "mml Jax Ready"