@rspress/shared 2.0.4 → 2.0.6

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.d.ts CHANGED
@@ -277,6 +277,14 @@ export declare interface MarkdownOptions {
277
277
  * @default true
278
278
  */
279
279
  extractDescription?: boolean;
280
+ /**
281
+ * Whether to enable CJK-friendly emphasis and strikethrough handling.
282
+ * This fixes a CommonMark specification issue where emphasis/strong and strikethrough markers (`*`, `**`, `~~`)
283
+ * are not recognized correctly when CJK characters are adjacent.
284
+ * @default true
285
+ * @see {@link https://github.com/tats-u/markdown-cjk-friendly}
286
+ */
287
+ cjkFriendlyEmphasis?: boolean;
280
288
  }
281
289
 
282
290
  export declare const matchNavbar: (item: NavItemWithLink, currentPathname: string) => boolean;
package/dist/logger.js CHANGED
@@ -1 +1 @@
1
- export { logger } from "./649.js";
1
+ export { logger } from "@rsbuild/core";
@@ -276,6 +276,14 @@ declare interface MarkdownOptions {
276
276
  * @default true
277
277
  */
278
278
  extractDescription?: boolean;
279
+ /**
280
+ * Whether to enable CJK-friendly emphasis and strikethrough handling.
281
+ * This fixes a CommonMark specification issue where emphasis/strong and strikethrough markers (`*`, `**`, `~~`)
282
+ * are not recognized correctly when CJK characters are adjacent.
283
+ * @default true
284
+ * @see {@link https://github.com/tats-u/markdown-cjk-friendly}
285
+ */
286
+ cjkFriendlyEmphasis?: boolean;
279
287
  }
280
288
 
281
289
  export declare const mergeDocConfig: (...configs: UserConfig[]) => Promise<UserConfig>;
@@ -1,7 +1,7 @@
1
1
  import node_path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import gray_matter from "gray-matter";
4
- import { logger } from "./649.js";
4
+ import { logger } from "./logger.js";
5
5
  const extractTextAndId = (title)=>{
6
6
  if (!title) return [
7
7
  '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/web-infra-dev/rspress.git",
@@ -39,7 +39,7 @@
39
39
  "unified": "^11.0.5"
40
40
  },
41
41
  "devDependencies": {
42
- "@rslib/core": "0.19.6",
42
+ "@rslib/core": "0.20.0",
43
43
  "@types/lodash-es": "^4.17.12",
44
44
  "@types/node": "^22.8.1",
45
45
  "@types/react": "^19.2.14",
package/dist/649.js DELETED
@@ -1 +0,0 @@
1
- export { logger } from "@rsbuild/core";