@rspress/plugin-llms 2.0.0-beta.22 → 2.0.0-beta.23

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 (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import node_path from "node:path";
2
- import { getSidebarDataGroup, logger, matchPath, normalizeHref, remarkFileCodeBlock, remarkPluginNormalizeLink, withBase } from "@rspress/core";
2
+ import { getSidebarDataGroup, logger, matchPath, normalizeHref, remarkFileCodeBlock, remarkLink, withBase } from "@rspress/core";
3
3
  import remark_mdx from "remark-mdx";
4
4
  import remark_parse from "remark-parse";
5
5
  import remark_stringify from "remark-stringify";
@@ -92,9 +92,13 @@ const mdxToMdPlugin = ()=>(tree)=>{
92
92
  function mdxToMd(content, filepath, routeService, base) {
93
93
  return unified().use(remark_parse).use(remark_mdx).use(remarkFileCodeBlock, {
94
94
  filepath
95
- }).use(mdxToMdPlugin).use(remarkPluginNormalizeLink, {
95
+ }).use(mdxToMdPlugin).use(remarkLink, {
96
96
  cleanUrls: '.md',
97
97
  routeService,
98
+ remarkLinkOptions: {
99
+ checkDeadLinks: false,
100
+ autoPrefix: true
101
+ },
98
102
  __base: base
99
103
  }).use(remark_stringify).process({
100
104
  value: content,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-llms",
3
- "version": "2.0.0-beta.22",
3
+ "version": "2.0.0-beta.23",
4
4
  "description": "A plugin for rspress to generate llms.txt, llms-full.txt, md files to let llm understand your website.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -26,9 +26,9 @@
26
26
  "unist-util-visit-children": "^3.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@microsoft/api-extractor": "^7.52.8",
30
- "@rsbuild/core": "~1.4.8",
31
- "@rslib/core": "0.10.6",
29
+ "@microsoft/api-extractor": "^7.52.9",
30
+ "@rsbuild/core": "~1.4.11",
31
+ "@rslib/core": "0.11.0",
32
32
  "@types/hast": "^3.0.4",
33
33
  "@types/node": "^22.8.1",
34
34
  "typescript": "^5.8.2",
@@ -36,7 +36,7 @@
36
36
  "@rspress/config": "1.0.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@rspress/core": "^2.0.0-beta.22"
39
+ "@rspress/core": "^2.0.0-beta.23"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=18.0.0"