Open SuperFluffy opened 8 months ago
Thank you so much! How could I have discovered this by myself? Look through pulldown-cmark
? Or would this have been documented anywhere on the dprint
side?
Alright, I found it on this page: https://dprint.dev/plugins/markdown/config/
It looks like I have no way to configure dprint to 1. insert linebreaks in overflowing lines, while 2. keeping explicit linebreaks intact. See the following examples (the desired behavior at the bottom):
[original]
A very long line exceeding 80 characters. It goes all the way to 80 and stops. Then it goes past it.
A new paragraph.
Here the lines are shorter.
Like so.
[never]
A very long line exceeding 80 characters. It goes all the way to 80 and stops. Then it goes past it.
A new paragraph. Here the lines are shorter. Like so.
[maintain]
A very long line exceeding 80 characters. It goes all the way to 80 and stops. Then it goes past it.
A new paragraph.
Here the lines are shorter.
Like so.
[always]
A very long line exceeding 80 characters. It goes all the way to 80 and stops.
Then it goes past it.
A new paragraph. Here the lines are shorter. Like so.
[desired - maintain explicit newline but insert in overflowing]
A very long line exceeding 80 characters. It goes all the way to 80 and stops.
Then it goes past it.
A new paragraph.
Here the lines are shorter.
Like so.
It seems like the
lineWidth
setting is completely ignored. Very long lines exceeding it are not broken up, see the playground here: playgrounddprint-plugin-markdown version: 0.16.4
Input Code
Expected Output
Actual Output