Skip to content

Commit 9fc8462

Browse files
committed
feat: add markdown-it-cjk-friendly
closes #3762 closes #4752 BREAKING CHANGE: [markdown-it-cjk-friendly](https://www.npmjs.com/package/markdown-it-cjk-friendly) is enabled by default. This intentionally deviates from the official commonmark spec for the benefit of CJK users. **For most users, no change is required.** If you were using hacks to patch `scanDelims`, you can remove those. To disable the plugin, set `markdown: { cjkFriendly: false }` in your vitepress config.
1 parent 1c8815d commit 9fc8462

File tree

3 files changed

+384
-351
lines changed

3 files changed

+384
-351
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
"markdown-it-anchor": "^9.2.0",
159159
"markdown-it-async": "^2.2.0",
160160
"markdown-it-attrs": "^4.3.1",
161+
"markdown-it-cjk-friendly": "^1.2.0",
161162
"markdown-it-container": "^4.0.0",
162163
"markdown-it-emoji": "^3.0.0",
163164
"markdown-it-mathjax3": "^4.3.2",

0 commit comments

Comments
 (0)