Ignore `font' groups when determining base elements, fixes #390 (#469)

* Ignore `font' groups when determining base elements, fixes #390

* fix ===

* Added testcase
This commit is contained in:
Mathijs Henquet
2016-09-18 02:22:01 +02:00
committed by Kevin Barabash
parent e4d2d933af
commit a16ae7a5eb
4 changed files with 3 additions and 1 deletions

View File

@@ -135,6 +135,8 @@ var getBaseElem = function(group) {
} else {
return group;
}
} else if (group.type === "font") {
return getBaseElem(group.value.body);
} else {
return group;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@@ -104,7 +104,7 @@ Sqrt: |
^{\sqrt{\sqrt{\sqrt{x}}}}}
SqrtRoot: |
1+\sqrt[3]{2}+\sqrt[1923^234]{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^{2^2}}}}}}}}}}}
SupSubCharacterBox: a_2f_2{f}_2{aa}_2{af}_2
SupSubCharacterBox: a_2f_2{f}_2{aa}_2{af}_2\mathbf{y}_Ay_A
SupSubHorizSpacing: |
x^{x^{x}}\Big|x_{x_{x_{x_{x}}}}\bigg|x^{x^{x_{x_{x_{x_{x}}}}}}\bigg|
SupSubLeftAlignReset: |