@xyd-js/content 0.0.0-build-6e6f290-20260116222509 → 0.0.0-build-386c43a-20260121224819
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/CHANGELOG.md +13 -7
- package/dist/md.js +9 -1
- package/dist/md.js.map +1 -1
- package/dist/vite.js +9 -1
- package/dist/vite.js.map +1 -1
- package/package.json +7 -7
- package/packages/md/plugins/index.ts +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/content",
|
|
3
|
-
"version": "0.0.0-build-
|
|
3
|
+
"version": "0.0.0-build-386c43a-20260121224819",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"unist-util-visit": "^5.0.0",
|
|
39
39
|
"vfile": "^6.0.3",
|
|
40
40
|
"vfile-matter": "^5.0.1",
|
|
41
|
-
"@xyd-js/context": "0.0.0-build-
|
|
42
|
-
"@xyd-js/core": "0.0.0-build-
|
|
43
|
-
"@xyd-js/gql": "0.0.0-build-
|
|
44
|
-
"@xyd-js/openapi": "0.0.0-build-
|
|
45
|
-
"@xyd-js/sources": "0.0.0-build-
|
|
41
|
+
"@xyd-js/context": "0.0.0-build-386c43a-20260121224819",
|
|
42
|
+
"@xyd-js/core": "0.0.0-build-386c43a-20260121224819",
|
|
43
|
+
"@xyd-js/gql": "0.0.0-build-386c43a-20260121224819",
|
|
44
|
+
"@xyd-js/openapi": "0.0.0-build-386c43a-20260121224819",
|
|
45
|
+
"@xyd-js/sources": "0.0.0-build-386c43a-20260121224819"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@xyd-js/components": "0.0.0-build-
|
|
48
|
+
"@xyd-js/components": "0.0.0-build-386c43a-20260121224819"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^22.14.1",
|
|
@@ -162,11 +162,18 @@ function getDiagramOptions(settings: Settings | undefined, diagramType: 'mermaid
|
|
|
162
162
|
export async function thirdPartyRehypePlugins(settings?: Settings) {
|
|
163
163
|
const plugins = [
|
|
164
164
|
[rehypeRaw, {
|
|
165
|
-
|
|
165
|
+
// Ensure MDX expression nodes are passed through so `rehype-raw` doesn't try
|
|
166
|
+
// to compile them into HAST — this prevents the "Cannot compile `mdxFlowExpression` node" error.
|
|
167
|
+
passThrough: [
|
|
168
|
+
'mdxjsEsm',
|
|
169
|
+
'mdxJsxFlowElement',
|
|
170
|
+
'mdxJsxTextElement',
|
|
171
|
+
'mdxFlowExpression',
|
|
172
|
+
'mdxTextExpression',
|
|
173
|
+
],
|
|
166
174
|
}] as any,
|
|
167
175
|
rehypeKatex,
|
|
168
176
|
]
|
|
169
|
-
|
|
170
177
|
// Add mermaid plugin if enabled
|
|
171
178
|
if (isDiagramTypeEnabled(settings, 'mermaid')) {
|
|
172
179
|
const mermaidOptions = getDiagramOptions(settings, 'mermaid');
|
|
@@ -178,7 +185,6 @@ export async function thirdPartyRehypePlugins(settings?: Settings) {
|
|
|
178
185
|
const graphvizPlugin = await getGraphvizPlugin()
|
|
179
186
|
plugins.push(graphvizPlugin)
|
|
180
187
|
}
|
|
181
|
-
|
|
182
188
|
return plugins
|
|
183
189
|
}
|
|
184
190
|
|