obsidian-linter icon indicating copy to clipboard operation
obsidian-linter copied to clipboard

FR: Add Option for Paragraph Blank Lines to not Add a New Line Before List Items

Open usernotnull opened this issue 1 year ago • 2 comments

In reference to rule: https://github.com/platers/obsidian-linter/blob/master/docs/rules.md#paragraph-blank-lines

Suppose we have this extract:

This is a paragraph and those are related items:
- Item 1
- Item 2

The above rule transforms it to:

This is a paragraph and those are related items:

- Item 1
- Item 2

In the above case, would it make sense to skip adding a new line if the paragraph is followed by list items? Would it be beneficial to add a checkbox in the option to make this feature optional if needed?

Stylistically speaking, I'm looking at blocks of paragraphs, each with its own idea. If I see a list separated by a blank line, I would assume the paragraph preceding it is not as related as I would want it to be.

usernotnull avatar Jul 02 '22 06:07 usernotnull

That would likely be a feature request since the functionality you refer to is currently correct. A list is not able to be in a paragraph, so the paragraph ends where the list begins.

pjkaufman avatar Jul 02 '22 09:07 pjkaufman

+1 from me for this FR

wzajchow avatar Oct 03 '22 08:10 wzajchow