-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Milestone
Description
Environments:
- Prettier Version: 1.18.2
Steps to reproduce:
// Input
私はJavaScriptが好きですExpected behavior:
私はJavaScriptが好きですActual behavior:
私は JavaScript が好きですFor now, Prettier inserts whitespace between latin and Japanese/Chinese on formatting Markdown.
As mentioned in #5938, this is not good behavior for Japanese, but correct for Chinese.
I tried to avoid this problem in the same way as handling Korean language, but it was impossible because Japanese and Chinese uses same Kanji letter, with same char code.
From above reason, I think we should add new option like add-whitespace-between-latin-and-cj to determine whether whitespace is inserted between latin and cj.
Of cource it's the best if there is the way to distinguish Japanese and Chinese.
ybiquitous, shinout, reminjp, uptonking, bechico and 40 morebrody4hire, JapaneseMayonnaise and andhisan
Metadata
Metadata
Assignees
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.