Skip to content

Prose wrap options for Korean #6516

@Rokt33r

Description

@Rokt33r

Korean language should be formatted like English. Sadly, prettier could not recognize Korean.

Prettier 1.18.2
Playground link

# Options (if any):
--prose-wrap=always

Input:

대한민국(듣기 (도움말·정보), 大韓民國, 영어: Republic of Korea; ROK[3])은 동아시아의 한반도 중남부에 있는 공화국이다.

서쪽으로는 서해를 사이에 두고 중화인민공화국이, 동쪽으로는 동해를 사이에 두고 일본이 있으며
북쪽으로는 조선민주주의인민공화국과 맞닿아 있다.

Output:

대한민국(듣기 (도움말·정보), 大韓民國, 영어: Republic of Korea; ROK[3])은 동아시
아의 한반도 중남부에 있는 공화국이다.

서쪽으로는 서해를 사이에 두고 중화인민공화국이, 동쪽으로는 동해를 사이에 두고 일
본이 있으며북쪽으로는 조선민주주의인민공화국과 맞닿아 있다.

The example shows three problems.

  • "동아시아" in the first paragraph is a single word. But Prettier splits it into "동아시\n아".
  • "일본" in the second paragraph is also a single word. It should not be split into "일\n본"
  • "있으며북쪽으로는" in the second paragraph should be two words. "있으며 북쪽으로는"

Expected behavior:

대한민국(듣기 (도움말·정보), 大韓民國, 영어: Republic of Korea; ROK[3])은 동아시아의 한반도
중남부에 있는 공화국이다.

서쪽으로는 서해를 사이에 두고 중화인민공화국이, 동쪽으로는 동해를 사이에 두고 일본이 있으며 북쪽으로는
조선민주주의인민공화국과 맞닿아 있다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:markdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions