CSS Snippet to Embed Content Before First Heading

I’m looking for a way to embed only the introductory content of a note—in my case, the text before the first heading—without including the heading itself or any content that follows. Ideally, this would be achieved without manually adding special markers or block IDs to each note.

I attempted to use CSS to hide content after the first heading in embeds, but it didn’t work:

*/* Hide content after the first heading in embeds */*
.markdown-embed-content h1,
.markdown-embed-content h1 ~ * {
display: none;
}

Any help is greatly appreciated!

Thank you!