Enable text-autospace in Chinese and Japanese documents#3872
Enable text-autospace in Chinese and Japanese documents#3872delucis merged 4 commits intowithastro:mainfrom
text-autospace in Chinese and Japanese documents#3872Conversation
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
🦋 Changeset detectedLatest commit: ae8d92d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hello! Thank you for opening your first PR to Starlight! ✨ Here’s what will happen next:
|
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Copilot <copilot@github.com>
|
Based on your feedback, I have updated the changeset description. |

Description
Especially in Chinese and Japanese, the CSS property
text-autospace: normalis preferred for better looking like books by automatically inserting spaces with the moderate width.text-autospacefor CJK languages vuejs/vitepress#4996Without this, some users and AIs try to insert such spaces manually as workarounds but they are too wide and prevent keywords from searched.
Japanese:
Before:
After:
Note: the current Chinese content of Starlight translation is not affected because it took the workarounds like manually inserting spaces.
The other languages are not affected.