@rspress/core 1.43.5 → 1.43.7

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/index.js CHANGED
@@ -1537,7 +1537,7 @@ async function dev(options) {
1537
1537
  }
1538
1538
  }
1539
1539
  var package_namespaceObject = {
1540
- i8: "1.43.5"
1540
+ i8: "1.43.7"
1541
1541
  };
1542
1542
  async function renderFrontmatterHead(route) {
1543
1543
  if (!isRouteMeta(route)) return '';
package/dist/loader.js CHANGED
@@ -338,12 +338,12 @@ const remarkPluginNormalizeLink = ({ root, cleanUrls })=>(tree, file)=>{
338
338
  });
339
339
  (0, __WEBPACK_EXTERNAL_MODULE_unist_util_visit_555e002a__.visit)(tree, (node)=>{
340
340
  if ('mdxJsxFlowElement' !== node.type && 'mdxJsxTextElement' !== node.type || 'img' !== node.name) return;
341
- const src = (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__.getNodeAttribute)(node, 'src');
342
- if ('string' != typeof src) return;
343
- const imagePath = normalizeImageUrl(src);
341
+ const srcAttr = (0, __WEBPACK_EXTERNAL_MODULE__rspress_shared_node_utils_78947ce6__.getNodeAttribute)(node, 'src', true);
342
+ if ('string' != typeof (null == srcAttr ? void 0 : srcAttr.value)) return;
343
+ const imagePath = normalizeImageUrl(srcAttr.value);
344
344
  if (!imagePath) return;
345
345
  const tempVariableName = `image${images.length}`;
346
- Object.assign(src, getMdxSrcAttribute(tempVariableName));
346
+ Object.assign(srcAttr, getMdxSrcAttribute(tempVariableName));
347
347
  images.push(getASTNodeImport(tempVariableName, imagePath));
348
348
  });
349
349
  tree.children.unshift(...images);
@@ -427,7 +427,6 @@ async function createMDXOptions(docDirectory, config, checkDeadLinks, routeServi
427
427
  }),
428
428
  ...globalComponentsFromConfig
429
429
  ];
430
- const defaultLang = (null == config ? void 0 : config.lang) || '';
431
430
  return {
432
431
  providerImportSource: '@mdx-js/react',
433
432
  format: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].extname(filepath).slice(1),
@@ -438,7 +437,6 @@ async function createMDXOptions(docDirectory, config, checkDeadLinks, routeServi
438
437
  remarkPluginNormalizeLink,
439
438
  {
440
439
  cleanUrls,
441
- defaultLang,
442
440
  root: docDirectory
443
441
  }
444
442
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "1.43.5",
3
+ "version": "1.43.7",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -73,13 +73,13 @@
73
73
  "unified": "^10.1.2",
74
74
  "unist-util-visit": "^4.1.2",
75
75
  "unist-util-visit-children": "^2.0.2",
76
- "@rspress/plugin-container-syntax": "1.43.5",
77
- "@rspress/plugin-medium-zoom": "1.43.5",
78
- "@rspress/plugin-last-updated": "1.43.5",
79
- "@rspress/runtime": "1.43.5",
80
- "@rspress/shared": "1.43.5",
81
- "@rspress/plugin-auto-nav-sidebar": "1.43.5",
82
- "@rspress/theme-default": "1.43.5"
76
+ "@rspress/plugin-auto-nav-sidebar": "1.43.7",
77
+ "@rspress/plugin-container-syntax": "1.43.7",
78
+ "@rspress/plugin-last-updated": "1.43.7",
79
+ "@rspress/runtime": "1.43.7",
80
+ "@rspress/plugin-medium-zoom": "1.43.7",
81
+ "@rspress/theme-default": "1.43.7",
82
+ "@rspress/shared": "1.43.7"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@microsoft/api-extractor": "^7.49.2",
@@ -95,11 +95,14 @@
95
95
  "@types/react-dom": "^18.3.5",
96
96
  "postcss": "8.5.1",
97
97
  "rehype-stringify": "^9.0.4",
98
+ "remark-mdx": "2.3.0",
98
99
  "remark-parse": "^10.0.2",
99
100
  "remark-rehype": "^10.1.0",
101
+ "remark-stringify": "^10.0.3",
100
102
  "rimraf": "^3.0.2",
101
103
  "tailwindcss": "^3.4.17",
102
104
  "typescript": "^5.5.3",
105
+ "vfile": "^5.3.7",
103
106
  "@rspress/config": "1.0.0"
104
107
  },
105
108
  "engines": {