Header top margin breaks if under a callout or a blockquote

Steps to reproduce

  1. Type some text
  2. Create a callout or a blockquote
  3. Add a header

Did you follow the troubleshooting guide? Y

Expected result

The header should have proper top margin if under a callout. Like this:

Actual result

It works as expected with paragraphs, code blocks, tables, lists and images, but not with callouts and blockquotes.


Obsidian version: v1.5.11
Installer version: v1.5.3
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

Additional information (possible solution)

Editing this already existing CSS:

.markdown-rendered div:has( > :is(p,pre,table,ul,ol)) + div > :is(h1,h2,h3,h4,h5,h6) {
    margin-top: var(--heading-spacing);

By adding .callout and blockquote in p,pre,table,ul,ol solves the problem:

.markdown-rendered div:has( > :is(p,pre,table,ul,ol,.callout,blockquote)) + div > :is(h1,h2,h3,h4,h5,h6) {
    margin-top: var(--heading-spacing);