Embed H3 without it's subsections (h4, h5, etc)

Continuing the discussion from Embed Section of Note without embedding the Header:

What I’m trying to do

I want to embed H3 and it’s content, but not it’s subsections (H4, and so on).


## H3 Option Sunroof
- info about the sunroof
- more stuff about the sunroof
### H4 picture
a picture of the sunroom
I don't want any of this in my embed

How can I embed all of H3 without also getting H4?

Things I have tried

My frontmatter includes:
cssclasses: hide-embedded-header-4 (I also tried with .css at the end) and my hide-embedded-header-4.css snippet looks like this:

.hide-embedded-header4 .markdown-embed h4{
	display: none; 
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.