@rspress/core 1.8.2 → 1.8.4

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.
Files changed (34) hide show
  1. package/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  2. package/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +12 -0
  3. package/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  4. package/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  5. package/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  6. package/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  7. package/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +12 -0
  8. package/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  9. package/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +16 -0
  10. package/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  11. package/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +14 -0
  12. package/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  13. package/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  14. package/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  15. package/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +30 -0
  16. package/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  17. package/compiled/fast-glob/index.js +37 -0
  18. package/compiled/fast-glob/license +21 -0
  19. package/compiled/fast-glob/out/index.d.ts +27 -0
  20. package/compiled/fast-glob/out/managers/tasks.d.ts +22 -0
  21. package/compiled/fast-glob/out/settings.d.ts +164 -0
  22. package/compiled/fast-glob/out/types/index.d.ts +31 -0
  23. package/compiled/fast-glob/package.json +1 -0
  24. package/compiled/globby/index.d.ts +186 -0
  25. package/compiled/globby/index.js +1 -0
  26. package/compiled/globby/license +9 -0
  27. package/compiled/globby/package.json +1 -0
  28. package/dist/index.js +33 -26
  29. package/dist/index.js.map +1 -1
  30. package/dist/loader.js +9 -5
  31. package/dist/loader.js.map +1 -1
  32. package/dist/runtime/App.js +8 -3
  33. package/package.json +18 -18
  34. package/src/runtime/App.tsx +18 -14
package/dist/loader.js CHANGED
@@ -3697,13 +3697,18 @@ var parseToc = (tree) => {
3697
3697
  if (node.depth > 1 && node.depth < 5) {
3698
3698
  let customId = "";
3699
3699
  const text = node.children.map((child) => {
3700
- if (child.type === "link") {
3701
- return child.children?.map((item) => item.value).join("");
3702
- } else {
3700
+ if (child.type === "link" || child.type === "strong") {
3701
+ return child.children?.map((item) => item.type === "text" ? item.value : "").join("");
3702
+ }
3703
+ if (child.type === "text") {
3703
3704
  const [textPart, idPart] = extractTextAndId(child.value);
3704
3705
  customId = idPart;
3705
3706
  return textPart;
3706
3707
  }
3708
+ if (child.type === "inlineCode") {
3709
+ return child.value;
3710
+ }
3711
+ return "";
3707
3712
  }).join("");
3708
3713
  const id = customId ? customId : slugger.slug(text);
3709
3714
  const { depth } = node;
@@ -3911,7 +3916,7 @@ var remarkPluginNormalizeLink = ({ base, root, cleanUrls }) => (tree, file) => {
3911
3916
  // src/node/mdx/remarkPlugins/checkDeadLink.ts
3912
3917
  import path4 from "path";
3913
3918
  import { visit as visit4 } from "unist-util-visit";
3914
- import logUtils from "@modern-js/utils/logger";
3919
+ import { logger as logger2 } from "@rspress/shared/logger";
3915
3920
  import { cleanUrl, isProduction } from "@rspress/shared";
3916
3921
 
3917
3922
  // src/node/runtimeModule/routeData.ts
@@ -3922,7 +3927,6 @@ var normalizeRoutePath = (routePath) => {
3922
3927
  };
3923
3928
 
3924
3929
  // src/node/mdx/remarkPlugins/checkDeadLink.ts
3925
- var { logger: logger2 } = logUtils;
3926
3930
  var IGNORE_REGEXP = /^(https?|mailto|tel|#)/;
3927
3931
  function checkLinks(links, filepath, root, routeService) {
3928
3932
  const errorInfos = [];