docs icon indicating copy to clipboard operation
docs copied to clipboard

set `proseWrap: 'always'` in prettier config to respect printWidth in markdown

Open dimaMachina opened this issue 1 year ago • 6 comments

dimaMachina avatar Mar 08 '23 14:03 dimaMachina

If I remember correctly, we set proseWrap to never because wrapping introduced issues with the Crowdin segmentation... but that might not be a problem anymore. That said, it also makes diffs nicer when modifying the start or middle of a paragraph.

benface avatar Mar 08 '23 16:03 benface

That said, it also makes diffs nicer when modifying the start or middle of a paragraph.

exactly!

dimaMachina avatar Mar 08 '23 16:03 dimaMachina

Wait, I mean proseWrap: never does. 😅

benface avatar Mar 08 '23 16:03 benface

anyway it is up to you to decide, we use proseWrap: 'always' in our shareable configs and we love it, especially while reading markdown content in Macbook 13

dimaMachina avatar Mar 08 '23 16:03 dimaMachina

I personally use the "word wrap" feature of VS Code when working with text/markdown files that aren't wrapped (Cmd+Z shortcut), so it's not really a problem. But I'm open to changing it, we just have to make sure that it doesn't break Crowdin. Maybe we can start with one file, just to test?

benface avatar Mar 08 '23 16:03 benface

sure! we can try 👍

dimaMachina avatar Mar 08 '23 16:03 dimaMachina