platers / obsidian-linter

An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
https://platers.github.io/obsidian-linter/
MIT License
1.24k stars 81 forks source link

FR: No line between quote and math block option for `Paragraph blank lines` #366

Open firinael opened 2 years ago

firinael commented 2 years ago

Is Your Feature Request Related to a Problem? Please Describe.

I use similarly styled blockquotes and mathblocks so I can join them to give the mathblock a title. The Paragraph blank lines option is one I always use, but it frustrates me to no end when it adds a line between my math and quote blocks.

Describe the Solution You'd Like

Please add an option for this exception.

Thank you for your work!

pjkaufman commented 2 years ago

@firinael , could you provide an example so that I might be able to take a look at this? Without an example it is a lot harder for me to see what is meant and fix the issue. Thanks!

firinael commented 2 years ago

before linting with Paragraph blank lines

image

after linting with Paragraph blank lines

image

I'd like the option for linting to not add the space shown in the second image. Also an option for not adding said blank line between a quote-1 and quote-2 would be nice.

pjkaufman commented 2 years ago

Coukd you provide the source values (i.e. Markdown) instead of screenshits of the live preview mode? Thanks!

firinael commented 2 years ago

image

is this ok?

pjkaufman commented 2 years ago

That works as a way I can copy over the source for testing.

You mentioned something about quote-1 and quote-2, but I don't see it in your example. If you don't mind explaining what a quote-# is, that would help as well.

firinael commented 2 years ago

A quote-# is a blockquote where the number of > is #. That is:

this is a quote-1

this is a quote-2

In the Shimmering Focus theme (and probably others), quote-2s following quote-1s (like above) are used to name the source of the quote, so it'd be nice if that could be added as an option as well.

pjkaufman commented 2 years ago

Gotcha. I see what you mean now. I will see what can be done.