temml 0.11.8 → 0.11.9

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
@@ -7965,13 +7965,25 @@ defineFunction({
7965
7965
  handler: (context, args) => {
7966
7966
  const delim = checkDelimiter(args[0], context);
7967
7967
 
7968
- return {
7968
+ const delimNode = {
7969
7969
  type: "delimsizing",
7970
7970
  mode: context.parser.mode,
7971
7971
  size: delimiterSizes[context.funcName].size,
7972
7972
  mclass: delimiterSizes[context.funcName].mclass,
7973
7973
  delim: delim.text
7974
7974
  };
7975
+ const nextToken = context.parser.fetch().text;
7976
+ if (nextToken !== "^" && nextToken !== "_") {
7977
+ return delimNode
7978
+ } else {
7979
+ // Chromium mis-renders a sized delim if it is the base of a supsub.
7980
+ // So wrap it in a ordgroup.
7981
+ return {
7982
+ type: "ordgroup",
7983
+ mode: "math",
7984
+ body: [delimNode, { type: "ordgroup", mode: "math", body: [] }]
7985
+ }
7986
+ }
7975
7987
  },
7976
7988
  mathmlBuilder: (group) => {
7977
7989
  const children = [];
@@ -14010,7 +14022,7 @@ class Style {
14010
14022
  * https://mit-license.org/
14011
14023
  */
14012
14024
 
14013
- const version = "0.11.08";
14025
+ const version = "0.11.09";
14014
14026
 
14015
14027
  function postProcess(block) {
14016
14028
  const labelMap = {};
package/dist/temml.js CHANGED
@@ -6052,13 +6052,25 @@ var temml = (function () {
6052
6052
  handler: (context, args) => {
6053
6053
  const delim = checkDelimiter(args[0], context);
6054
6054
 
6055
- return {
6055
+ const delimNode = {
6056
6056
  type: "delimsizing",
6057
6057
  mode: context.parser.mode,
6058
6058
  size: delimiterSizes[context.funcName].size,
6059
6059
  mclass: delimiterSizes[context.funcName].mclass,
6060
6060
  delim: delim.text
6061
6061
  };
6062
+ const nextToken = context.parser.fetch().text;
6063
+ if (nextToken !== "^" && nextToken !== "_") {
6064
+ return delimNode
6065
+ } else {
6066
+ // Chromium mis-renders a sized delim if it is the base of a supsub.
6067
+ // So wrap it in a ordgroup.
6068
+ return {
6069
+ type: "ordgroup",
6070
+ mode: "math",
6071
+ body: [delimNode, { type: "ordgroup", mode: "math", body: [] }]
6072
+ }
6073
+ }
6062
6074
  },
6063
6075
  mathmlBuilder: (group) => {
6064
6076
  const children = [];
@@ -12097,7 +12109,7 @@ var temml = (function () {
12097
12109
  * https://mit-license.org/
12098
12110
  */
12099
12111
 
12100
- const version = "0.11.08";
12112
+ const version = "0.11.09";
12101
12113
 
12102
12114
  function postProcess(block) {
12103
12115
  const labelMap = {};