0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Prettier3がリリースされて日本語と英語の間に半角スペースが入る問題が解消された

Posted at

2023-07-05にPrettier3がリリースされた

これにより、Breaking Changeとして、
日本語と英語の間に半角スペースが入る問題が解消された。

Prettier2では↓のようなMarkdownをフォーマットすると、

これはMarkdownです。

↓のように、勝手に半角スペースが入っていた...ナンジャソリャ❗

これは Markdown です。

この奇妙すぎる動作がPrettier3では改善された。
実際に npm install prettier@latest して、Prettier 3.0.0で試してみたら、
確かに半角スペースが入らなくなっていた❗素晴らしい❗
(なぜかVSCodeの再起動が必要だったが。)

この改善はこちらの記事にあるように@tats-u氏の奮闘によるもの。
PrettierのIssueを見に行くと、なが〜い奮闘の記録が見れるのでぜひ見に行って欲しい。
氏に感謝。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?