@mintlify/cli 4.0.1541 → 4.0.1542

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.
@@ -2886,6 +2886,7 @@ function formatFrontmatterValue(key, value) {
2886
2886
  // ../editor/dist/converter/serialize/handlers/components.js
2887
2887
  import { titleMarkdownToText } from "@mintlify/common/title-markdown";
2888
2888
  import remarkGfm2 from "remark-gfm";
2889
+ import remarkMath2 from "remark-math";
2889
2890
  import remarkMdx2 from "remark-mdx";
2890
2891
  import remarkStringify from "remark-stringify";
2891
2892
  import { unified } from "unified";
@@ -4040,11 +4041,12 @@ function unescapeIntrawordUnderscores(text) {
4040
4041
  });
4041
4042
  }
4042
4043
  var stringifyHandlers = {
4043
- text: (node, _parent, state, info) => unescapeIntrawordUnderscores(state.safe(node.value, info))
4044
+ text: (node, _parent, state, info) => unescapeIntrawordUnderscores(state.safe(node.value, info)),
4045
+ inlineMath: (node) => `$$${node.value}$$`
4044
4046
  };
4045
4047
  function stringifyMdxNode(children) {
4046
4048
  const wrapped = children.map((child) => (child === null || child === void 0 ? void 0 : child.type) === "mdxJsxTextElement" ? { type: "paragraph", children: [child] } : child);
4047
- const result = unified().use(remarkMdx2).use(remarkGfm2).use(remarkStringify, { handlers: stringifyHandlers }).stringify({ type: "root", children: wrapped });
4049
+ const result = unified().use(remarkMdx2).use(remarkGfm2).use(remarkMath2).use(remarkStringify, { handlers: stringifyHandlers }).stringify({ type: "root", children: wrapped });
4048
4050
  return typeof result === "string" ? result : String(result);
4049
4051
  }
4050
4052
  function renderMermaidBlock(state, node) {
@@ -5937,12 +5939,12 @@ function pmJsonToMdast(_doc, _frontmatter) {
5937
5939
 
5938
5940
  // ../editor/dist/converter/serialize/mdast-to-mdx.js
5939
5941
  import remarkGfm3 from "remark-gfm";
5940
- import remarkMath2 from "remark-math";
5942
+ import remarkMath3 from "remark-math";
5941
5943
  import remarkMdx3 from "remark-mdx";
5942
5944
  import remarkStringify2 from "remark-stringify";
5943
5945
  import { unified as unified2 } from "unified";
5944
5946
  function mdastToMdx(mdast) {
5945
- const result = unified2().use(remarkMdx3).use(remarkGfm3).use(remarkMath2).use(remarkStringify2).stringify(mdast);
5947
+ const result = unified2().use(remarkMdx3).use(remarkGfm3).use(remarkMath3).use(remarkStringify2).stringify(mdast);
5946
5948
  return typeof result === "string" ? result : String(result);
5947
5949
  }
5948
5950
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintlify/cli",
3
- "version": "4.0.1541",
3
+ "version": "4.0.1542",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -86,7 +86,7 @@
86
86
  "keytar": "7.9.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@mintlify/editor": "0.0.422",
89
+ "@mintlify/editor": "0.0.423",
90
90
  "@mintlify/ts-config": "2.0.2",
91
91
  "@tsconfig/recommended": "1.0.2",
92
92
  "@types/detect-port": "1.3.2",
@@ -105,5 +105,5 @@
105
105
  "vitest": "2.1.9",
106
106
  "vitest-mock-process": "1.0.4"
107
107
  },
108
- "gitHead": "78392bb59eec2d2bb936caaa8c77a6b073ee60ea"
108
+ "gitHead": "c42856ee00845f3f0420beb240aacb7d8762de9c"
109
109
  }