-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Support CJK Friendly Emphasis #11932
Copy link
Copy link
Open
Labels
proposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial changestatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers
Metadata
Metadata
Assignees
Labels
proposalThis issue is a proposal, usually non-trivial changeThis issue is a proposal, usually non-trivial changestatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Motivation
remark-cjk-friendly) instead of plain CommonMark/GFM emphasis web-infra-dev/rspress#2772remark-cjk-friendlyin migration guide #10892We have to insert extra spaces for workaround:
Docusaurus 3 has a regression that asterisks
*/**around punctuation including`representing inline codes and[/]representing links are not recognized as emphasis. This affects especially on Chinese and Japanese documents.https://docusaurus.io/docs/next/migration/v3#other-markdown-incompatibilities suggests using
remark-cjk-friendly(#10892) but it should be opt-in or opt-out in the future.There are two proposed methods for setting it up:
Also there are 3 proposed strategies for enabling it:
pnpm add remark-cjk-friendly remark-cjk-friendly-strikethrough)Self-service