prettier / prettier/prettier

Markdown: Extra space added between 'NO-BREAK SPACE' (U+00A0) and Chinese

Open
#8,701 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.