temml 0.12.2 → 0.13.1

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.cjs CHANGED
@@ -3876,7 +3876,6 @@ const dotsByToken = {
3876
3876
  "\\iint": "\\dotsi",
3877
3877
  "\\iiint": "\\dotsi",
3878
3878
  "\\iiiint": "\\dotsi",
3879
- "\\idotsint": "\\dotsi",
3880
3879
  // Symbols whose definition starts with \DOTSX:
3881
3880
  "\\DOTSX": "\\dotsx"
3882
3881
  };
@@ -3958,7 +3957,7 @@ defineMacro("\\cdots", function(context) {
3958
3957
  defineMacro("\\dotsb", "\\cdots");
3959
3958
  defineMacro("\\dotsm", "\\cdots");
3960
3959
  defineMacro("\\dotsi", "\\!\\cdots");
3961
- defineMacro("\\idotsint", "\\dotsi");
3960
+ defineMacro("\\idotsint", "\\int\\!\\cdots\\!\\int");
3962
3961
  // amsmath doesn't actually define \dotsx, but \dots followed by a macro
3963
3962
  // starting with \DOTSX implies \dotso, and then \extra@ detects this case
3964
3963
  // and forces the added `\,`.
@@ -13678,6 +13677,12 @@ class Parser {
13678
13677
  result = this.parseFunction(breakOnTokenText, name) || this.parseSymbol();
13679
13678
  if (result == null && text[0] === "\\" &&
13680
13679
  !Object.prototype.hasOwnProperty.call(implicitCommands, text )) {
13680
+ if (this.settings.throwOnError) {
13681
+ throw new ParseError("Unsupported function name: " + text, firstToken);
13682
+ }
13683
+ // For people getting dyanamically rendered math, it's better to
13684
+ // show the unsupported command in red rather than panicking for every
13685
+ // partially written expression.
13681
13686
  result = this.formatUnsupportedCmd(text);
13682
13687
  this.consume();
13683
13688
  }
@@ -14063,7 +14068,7 @@ class Style {
14063
14068
  * https://mit-license.org/
14064
14069
  */
14065
14070
 
14066
- const version = "0.12.02";
14071
+ const version = "0.13.01";
14067
14072
 
14068
14073
  function postProcess(block) {
14069
14074
  const labelMap = {};
package/dist/temml.js CHANGED
@@ -3877,7 +3877,6 @@ var temml = (function () {
3877
3877
  "\\iint": "\\dotsi",
3878
3878
  "\\iiint": "\\dotsi",
3879
3879
  "\\iiiint": "\\dotsi",
3880
- "\\idotsint": "\\dotsi",
3881
3880
  // Symbols whose definition starts with \DOTSX:
3882
3881
  "\\DOTSX": "\\dotsx"
3883
3882
  };
@@ -3959,7 +3958,7 @@ var temml = (function () {
3959
3958
  defineMacro("\\dotsb", "\\cdots");
3960
3959
  defineMacro("\\dotsm", "\\cdots");
3961
3960
  defineMacro("\\dotsi", "\\!\\cdots");
3962
- defineMacro("\\idotsint", "\\dotsi");
3961
+ defineMacro("\\idotsint", "\\int\\!\\cdots\\!\\int");
3963
3962
  // amsmath doesn't actually define \dotsx, but \dots followed by a macro
3964
3963
  // starting with \DOTSX implies \dotso, and then \extra@ detects this case
3965
3964
  // and forces the added `\,`.
@@ -11765,6 +11764,12 @@ var temml = (function () {
11765
11764
  result = this.parseFunction(breakOnTokenText, name) || this.parseSymbol();
11766
11765
  if (result == null && text[0] === "\\" &&
11767
11766
  !Object.prototype.hasOwnProperty.call(implicitCommands, text )) {
11767
+ if (this.settings.throwOnError) {
11768
+ throw new ParseError("Unsupported function name: " + text, firstToken);
11769
+ }
11770
+ // For people getting dyanamically rendered math, it's better to
11771
+ // show the unsupported command in red rather than panicking for every
11772
+ // partially written expression.
11768
11773
  result = this.formatUnsupportedCmd(text);
11769
11774
  this.consume();
11770
11775
  }
@@ -12150,7 +12155,7 @@ var temml = (function () {
12150
12155
  * https://mit-license.org/
12151
12156
  */
12152
12157
 
12153
- const version = "0.12.02";
12158
+ const version = "0.13.01";
12154
12159
 
12155
12160
  function postProcess(block) {
12156
12161
  const labelMap = {};