remark-lint icon indicating copy to clipboard operation
remark-lint copied to clipboard

Add a rule for finding dedented paragraph lines

Open SpecLad opened this issue 8 months ago • 0 comments

Initial checklist

Problem

I frequently see list items like this:

- Foo
Bar

This is a single item, but it's visually ambiguous (seems like "Bar" could be a separate paragraph). I'd like to have a way to find these and replace them with:

- Foo
  Bar

Current solutions

None that I could find. remark-lint-list-item-content-indent and remark-lint-no-paragraph-content-indent both seem like they could be relevant, but neither of them emits a warning in this case.

Proposed solutions

Add a new plugin, say remark-lint-no-paragraph-content-dedent, that flags situations like this.

SpecLad avatar May 06 '25 11:05 SpecLad