Prevent texClass from being inherited (fixes a spacing problem with maction elements)
This commit is contained in:
parent
5df49e3d18
commit
bbc3a1416b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,7 @@ MathJax.ElementJax.mml = MathJax.ElementJax({
|
||||||
mimeType: "jax/mml"
|
mimeType: "jax/mml"
|
||||||
},{
|
},{
|
||||||
id: "mml",
|
id: "mml",
|
||||||
version: "1.1.1",
|
version: "1.1.2",
|
||||||
directory: MathJax.ElementJax.directory + "/mml",
|
directory: MathJax.ElementJax.directory + "/mml",
|
||||||
extensionDir: MathJax.ElementJax.extensionDir + "/mml",
|
extensionDir: MathJax.ElementJax.extensionDir + "/mml",
|
||||||
optableDir: MathJax.ElementJax.directory + "/mml/optable"
|
optableDir: MathJax.ElementJax.directory + "/mml/optable"
|
||||||
|
@ -215,6 +215,9 @@ MathJax.ElementJax.mml.Augment({
|
||||||
mathcolor: MML.INHERIT
|
mathcolor: MML.INHERIT
|
||||||
},
|
},
|
||||||
noInherit: {},
|
noInherit: {},
|
||||||
|
noInheritAttribute: {
|
||||||
|
texClass: true
|
||||||
|
},
|
||||||
|
|
||||||
Init: function () {
|
Init: function () {
|
||||||
this.data = [];
|
this.data = [];
|
||||||
|
@ -257,7 +260,7 @@ MathJax.ElementJax.mml.Augment({
|
||||||
{return (parent["adjustChild_"+name])(parent.childPosition(this))}
|
{return (parent["adjustChild_"+name])(parent.childPosition(this))}
|
||||||
var obj = this.inherit; var root = obj;
|
var obj = this.inherit; var root = obj;
|
||||||
while (obj) {
|
while (obj) {
|
||||||
if (typeof(obj[name]) !== "undefined") {
|
if (typeof(obj[name]) !== "undefined" && !obj.noInheritAttribute[name]) {
|
||||||
var noInherit = obj.noInherit[this.type];
|
var noInherit = obj.noInherit[this.type];
|
||||||
if (!(noInherit && noInherit[name])) {return obj[name]}
|
if (!(noInherit && noInherit[name])) {return obj[name]}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user