Skip to content

Enable text-autospace in Chinese and Japanese documents#3872

Merged
delucis merged 4 commits intowithastro:mainfrom
tats-u:autospace
May 6, 2026
Merged

Enable text-autospace in Chinese and Japanese documents#3872
delucis merged 4 commits intowithastro:mainfrom
tats-u:autospace

Conversation

@tats-u
Copy link
Copy Markdown
Contributor

@tats-u tats-u commented May 4, 2026

Description

Especially in Chinese and Japanese, the CSS property text-autospace: normal is preferred for better looking like books by automatically inserting spaces with the moderate width.

Without 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:

image

After:

image

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.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit ae8d92d
🔍 Latest deploy log https://app.netlify.com/projects/astro-starlight/deploys/69fbb11d37040800081a2d58
😎 Deploy Preview https://deploy-preview-3872--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 4, 2026

🦋 Changeset detected

Latest commit: ae8d92d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@astrojs/starlight Minor

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

@astrobot-houston
Copy link
Copy Markdown
Contributor

Hello! Thank you for opening your first PR to Starlight! ✨

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any issues you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🤩

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

@github-actions github-actions Bot added the 🌟 core Changes to Starlight’s main package label May 4, 2026
Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tats-u — this looks good to me. Just one small changelog suggestion.

Comment thread .changeset/gentle-hats-help.md
@delucis delucis added this to the v0.39 milestone May 4, 2026
@delucis delucis added the 🌟 minor Change that triggers a minor release label May 4, 2026
tats-u and others added 2 commits May 5, 2026 11:42
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@tats-u
Copy link
Copy Markdown
Contributor Author

tats-u commented May 5, 2026

Based on your feedback, I have updated the changeset description.

@tats-u tats-u requested a review from delucis May 5, 2026 03:10
delucis
delucis previously approved these changes May 5, 2026
Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @tats-u! We’ll get this released in our next minor.

@delucis delucis added the ✅ approved Pull requests that have been approved and are ready to merge when next cutting a release label May 5, 2026
@delucis delucis merged commit 417a66c into withastro:main May 6, 2026
16 checks passed
@astrobot-houston astrobot-houston mentioned this pull request May 6, 2026
@tats-u tats-u deleted the autospace branch May 6, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✅ approved Pull requests that have been approved and are ready to merge when next cutting a release 🌟 core Changes to Starlight’s main package 🌟 minor Change that triggers a minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants