temml 0.10.30 → 0.10.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/temml.mjs CHANGED
@@ -1692,6 +1692,7 @@ defineSymbol(math, inner, "\u22f0", "\\iddots", true);
1692
1692
  defineSymbol(math, inner, "\u22ef", "\\@cdots", true);
1693
1693
  defineSymbol(math, inner, "\u22f1", "\\ddots", true);
1694
1694
  defineSymbol(math, textord, "\u22ee", "\\varvdots"); // \vdots is a macro
1695
+ defineSymbol(text, textord, "\u22ee", "\\textvdots");
1695
1696
  defineSymbol(math, accent, "\u02ca", "\\acute");
1696
1697
  defineSymbol(math, accent, "\u0060", "\\grave");
1697
1698
  defineSymbol(math, accent, "\u00a8", "\\ddot");
@@ -4610,7 +4611,7 @@ defineMacro("\\underbar", "\\underline{\\text{#1}}");
4610
4611
  // \kern6\p@\hbox{.}\hbox{.}\hbox{.}}}
4611
4612
  // We'll call \varvdots, which gets a glyph from symbols.js.
4612
4613
  // The zero-width rule gets us an equivalent to the vertical 6pt kern.
4613
- defineMacro("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
4614
+ defineMacro("\\vdots", "\\TextOrMath{\\textvdots}{{\\varvdots\\rule{0pt}{15pt}}}\\relax");
4614
4615
  defineMacro("\u22ee", "\\vdots");
4615
4616
 
4616
4617
  // {array} environment gaps
@@ -12503,6 +12504,7 @@ class Parser {
12503
12504
  */
12504
12505
  parseExpression(breakOnInfix, breakOnTokenText, breakOnMiddle) {
12505
12506
  const body = [];
12507
+ this.prevAtomType = "";
12506
12508
  // Keep adding atoms to the body until we can't parse any more atoms (either
12507
12509
  // we reached the end, a }, or a \right)
12508
12510
  while (true) {
@@ -13500,7 +13502,7 @@ class Style {
13500
13502
  * https://mit-license.org/
13501
13503
  */
13502
13504
 
13503
- const version = "0.10.30";
13505
+ const version = "0.10.32";
13504
13506
 
13505
13507
  function postProcess(block) {
13506
13508
  const labelMap = {};
@@ -14,7 +14,7 @@
14
14
  * https://mit-license.org/
15
15
  */
16
16
 
17
- const version = "0.10.30";
17
+ const version = "0.10.32";
18
18
 
19
19
  function postProcess(block) {
20
20
  const labelMap = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "temml",
3
- "version": "0.10.30",
3
+ "version": "0.10.32",
4
4
  "description": "TeX to MathML conversion in JavaScript.",
5
5
  "main": "dist/temml.js",
6
6
  "engines": {
package/src/Parser.js CHANGED
@@ -187,6 +187,7 @@ export default class Parser {
187
187
  */
188
188
  parseExpression(breakOnInfix, breakOnTokenText, breakOnMiddle) {
189
189
  const body = [];
190
+ this.prevAtomType = ""
190
191
  // Keep adding atoms to the body until we can't parse any more atoms (either
191
192
  // we reached the end, a }, or a \right)
192
193
  while (true) {
package/src/macros.js CHANGED
@@ -243,7 +243,7 @@ defineMacro("\\underbar", "\\underline{\\text{#1}}");
243
243
  // \kern6\p@\hbox{.}\hbox{.}\hbox{.}}}
244
244
  // We'll call \varvdots, which gets a glyph from symbols.js.
245
245
  // The zero-width rule gets us an equivalent to the vertical 6pt kern.
246
- defineMacro("\\vdots", "{\\varvdots\\rule{0pt}{15pt}}");
246
+ defineMacro("\\vdots", "\\TextOrMath{\\textvdots}{{\\varvdots\\rule{0pt}{15pt}}}\\relax");
247
247
  defineMacro("\u22ee", "\\vdots");
248
248
 
249
249
  // {array} environment gaps
@@ -8,7 +8,7 @@
8
8
  * https://mit-license.org/
9
9
  */
10
10
 
11
- export const version = "0.10.30";
11
+ export const version = "0.10.32";
12
12
 
13
13
  export function postProcess(block) {
14
14
  const labelMap = {}
package/src/symbols.js CHANGED
@@ -856,6 +856,7 @@ defineSymbol(math, inner, "\u22f0", "\\iddots", true);
856
856
  defineSymbol(math, inner, "\u22ef", "\\@cdots", true);
857
857
  defineSymbol(math, inner, "\u22f1", "\\ddots", true);
858
858
  defineSymbol(math, textord, "\u22ee", "\\varvdots"); // \vdots is a macro
859
+ defineSymbol(text, textord, "\u22ee", "\\textvdots");
859
860
  defineSymbol(math, accent, "\u02ca", "\\acute");
860
861
  defineSymbol(math, accent, "\u0060", "\\grave");
861
862
  defineSymbol(math, accent, "\u00a8", "\\ddot");