-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
status: triageNeeds review and prioritizationNeeds review and prioritizationtype: storyNew feature or enhancementNew feature or enhancement
Description
User Story
As someone that does a lot of writing in markdown (e.g. Quarto, Myst, etc.), I usually follow the recommendation to use soft-wraps and OSL (one-sentence-per-line).
I'm pretty sure there is a rule for other linters (eslint, markdownlint, prettier) that can do this, and it would be lovely to get a config option to warn/correct me when OSL has not been followed, which is a lot better than my current need to disable MD013 entirely.
Semantic linebreaks might be harder to actually implement, since there's a lot more that goes into a semantically meaningful. There are tools out there to do this, but they are...heavy, and require a bit of NLP (and the libraries that implies). See sembr.
Acceptance Criteria
- Mode other than
"off"for MD013 (line-length) to check for One-Sentence-per-Line"osl" - ability to perform refactor from hard-wrapped linebreaks into OSL as a code action
- (optional)
"sembr"mode that will rely on third-party semantic linebreak tooling (if available)
Additional Context
No response
Priority
Medium
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: triageNeeds review and prioritizationNeeds review and prioritizationtype: storyNew feature or enhancementNew feature or enhancement