Markdown: Extra space added between 'NO-BREAK SPACE' (U+00A0) and Chinese
Open
Nobody has claimed this yet.
lang:markdown
- Dominant language
- JavaScript
- Stars
- 52.3k
- Forks
- 5k
- Avg merge
- 19h 2m
- Merged PRs (30d)
- 117
Description
Prettier 2.0.5
Playground link
--parser markdown
Input:
a 是
a是
Output:
a 是
a 是
Expected behavior:
Should not add U+0020
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Playground example using the markdown parser and reproduce the extra U+0020 with the two-line input. Trace the Markdown formatting entry point and verify that the output preserves the no-break space without inserting a regular space, while confirming the existing Chinese text case still formats correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, markdown
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100