Highlights ✨
🌏 CJK-Friendly Emphasis
related PR: #3201
Thanks to @tats-u for integrating his remark-cjk-friendly and remark-cjk-friendly-gfm-strikethrough remark plugins into Rspress as a built-in feature.
CommonMark/GFM has a spec-level issue: bold and emphasis break near CJK characters in certain cases. These remark plugins fix the parsing to handle CJK punctuation correctly.
Enabled by default. Opt out with markdown.cjkFriendlyEmphasis = false.
Source:
**中文文本(带括号)。**这句子继续也没问题。This should render as bold, but most Markdown renderers outputs raw ** markers.
✅: 中文文本(带括号)。 这句子继续也没问题。
❌: **中文文本(带括号)。**这句子继续也没问题。
What's Changed
New Features 🎉
- feat(mdx): add opt-out CJK-friendly emphasis remark plugin and
markdown.cjkFriendlyEmphasisby @tats-u in #3201
Bug Fixes 🐞
- fix(plugin-llms): use normalized markdown content for llms-full.txt generation by @SoonIter in #3199
- fix(core): keep dotted version directories in addRoutePrefix by @liyang8246 in #3173
- fix(plugin-preview): fix missing whitespace in calc() expression by @SoonIter in #3198
- fix(ssg-md): avoid generating "# undefined" in llms.txt and warn when title is missing by @SoonIter in #3207
Document 📖
- docs(migration): add mdxRs option removal to migration guide by @tats-u in #3196
- docs(plugin-preview): add migration note for removed Less/Sass built-in plugins and OverviewGroup usage by @SoonIter in #3197
- docs: add more community plugins to overview by @buyfakett in #3189
Other Changes
- chore(deps): update actions/setup-node action to v6.3.0 by @renovate[bot] in #3204
- chore(deps): update dependency @changesets/cli to ^2.30.0 by @renovate[bot] in #3205
- chore(deps): update dependency @rstest/core to ^0.9.0 by @renovate[bot] in #3206
- chore(infra): separate rstack and shiki into distinct renovate groups by @SoonIter in #3208
- Release v2.0.5 by @SoonIter in #3209
New Contributors
- @liyang8246 made their first contribution in #3173
- @buyfakett made their first contribution in #3189
Full Changelog: v2.0.4...v2.0.5