-
-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MD013: Automatically fix line length #535
Comments
This is a reasonable request, but it is not practical within the current constraints of the fix system. It’s also much more invasive than I think I’m comfortable with. |
That's fair, I have no idea what it would take to implement this. For anyone else looking for this feature, in vim |
Just to leave a note for anyone else who might look at this, there are two notable challenges that spring to mind: Rule violations that offer a fix are only able to target a single line for edits. Reflow would typically involve multiple edits spanning multiple lines that need to be coordinated with each other. Improving the API is something I will do eventually, but it's not enough. Applying multiple fixes at once works today by carefully ordering them so that they don't overlap or interfere with each other. That may not be possible with a paragraph reflow, so bulk fix operations may fail more often if reflow were attempted. |
When rule MD013/line-length is enabled and markdownlint is fixing rule violations, it would be helpful if it could reflow a multiline paragraph. This would greatly improve productivity when editing paragraphs broken at a specific column.
The text was updated successfully, but these errors were encountered: