You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good idea!
I think it should be called remark-lint-hard-break-style:
The word “hard break” is more often used to differentiate from a soft line break, it’s also used for the existing rule remark-lint-hard-break-spaces
linebreak is used for the existing rule remark-lint-linebreak-style, which checks for CRLF/LF
the word “consistent” is used in this project as an option, which means that the first used style is chosen, and later uses should be the same. This is typically the default.
Initial checklist
Problem
Commonmark supports two ways to add a linebreak.
Using two spaces at the end of a line:
Using a backslash at the end of a line:
foo\ bar
It would be nice if remark could enforce consistency.
Solution
Add a new rule:
remark-lint-consistent-linebreaks
This rule enforces one style or the other, defaulting to
\
.Alternatives
People shouldn’t use line breaks in the first place, but since they do, let’s prefer the visible one over the invisible one 🤷
The text was updated successfully, but these errors were encountered: