katex 0.18.2 → 0.18.3

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/katex.mjs CHANGED
@@ -8705,7 +8705,7 @@ defineFunction({
8705
8705
  numArgs: 1,
8706
8706
  argTypes: ["primitive"],
8707
8707
  handler: (context, args) => {
8708
- var delim = checkDelimiter(args[0], context);
8708
+ var delim = checkDelimiter(normalizeArgument(args[0]), context);
8709
8709
  return {
8710
8710
  type: "delimsizing",
8711
8711
  mode: context.parser.mode,
@@ -16265,7 +16265,7 @@ var renderToHTMLTree = function renderToHTMLTree(expression, options) {
16265
16265
  return renderError(error, expression, settings);
16266
16266
  }
16267
16267
  };
16268
- var version = "0.18.2";
16268
+ var version = "0.18.3";
16269
16269
  var __domTree = {
16270
16270
  Span,
16271
16271
  Anchor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katex",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "description": "Fast math typesetting for the web.",
5
5
  "main": "dist/katex.js",
6
6
  "types": "types/katex.d.ts",
@@ -1,5 +1,5 @@
1
1
  import {makeSpan} from "../buildCommon";
2
- import defineFunction from "../defineFunction";
2
+ import defineFunction, {normalizeArgument} from "../defineFunction";
3
3
  import {makeLeftRightDelim, makeSizedDelim, sizeToMaxHeight} from "../delimiter";
4
4
  import {MathNode} from "../mathMLTree";
5
5
  import ParseError from "../ParseError";
@@ -97,7 +97,7 @@ defineFunction({
97
97
  argTypes: ["primitive"],
98
98
 
99
99
  handler: (context, args) => {
100
- const delim = checkDelimiter(args[0], context);
100
+ const delim = checkDelimiter(normalizeArgument(args[0]), context);
101
101
 
102
102
  return {
103
103
  type: "delimsizing",