mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-14 23:38:40 +00:00
This reverts commit d93a958379
.
This commit is contained in:
@@ -347,8 +347,7 @@ const makeVList = function(children, positionType, positionData, options) {
|
||||
} else {
|
||||
const child = children[i].elem;
|
||||
|
||||
const childWrap = makeSpan(
|
||||
[], [pstrut, child, new domTree.symbolNode("\u200b")]);
|
||||
const childWrap = makeSpan([], [pstrut, child]);
|
||||
childWrap.style.top = (-pstrutSize - currPos - child.depth) + "em";
|
||||
if (children[i].marginLeft) {
|
||||
childWrap.style.marginLeft = children[i].marginLeft;
|
||||
|
@@ -761,20 +761,16 @@ groupTypes.spacing = function(group, options) {
|
||||
|
||||
groupTypes.llap = function(group, options) {
|
||||
const inner = makeSpan(
|
||||
["inner"], [
|
||||
buildGroup(group.value.body, options),
|
||||
new domTree.symbolNode("\u200b")]);
|
||||
const fix = makeSpan(["fix"], [new domTree.symbolNode("\u200b")]);
|
||||
["inner"], [buildGroup(group.value.body, options)]);
|
||||
const fix = makeSpan(["fix"], []);
|
||||
return makeSpan(
|
||||
["mord", "llap"], [inner, fix], options);
|
||||
};
|
||||
|
||||
groupTypes.rlap = function(group, options) {
|
||||
const inner = makeSpan(
|
||||
["inner"], [
|
||||
buildGroup(group.value.body, options),
|
||||
new domTree.symbolNode("\u200b")]);
|
||||
const fix = makeSpan(["fix"], [new domTree.symbolNode("\u200b")]);
|
||||
["inner"], [buildGroup(group.value.body, options)]);
|
||||
const fix = makeSpan(["fix"], []);
|
||||
return makeSpan(
|
||||
["mord", "rlap"], [inner, fix], options);
|
||||
};
|
||||
@@ -1743,10 +1739,7 @@ const buildHTML = function(tree, options) {
|
||||
bottomStrut.style.verticalAlign = -body.depth + "em";
|
||||
|
||||
// Wrap the struts and body together
|
||||
const htmlNode = makeSpan(["katex-html"], [
|
||||
topStrut, bottomStrut, body,
|
||||
// Quirks mode fix
|
||||
new domTree.symbolNode("\u200b")]);
|
||||
const htmlNode = makeSpan(["katex-html"], [topStrut, bottomStrut, body]);
|
||||
|
||||
htmlNode.setAttribute("aria-hidden", "true");
|
||||
|
||||
|
Reference in New Issue
Block a user