include: don't erroneously remove headings if hidefirstheading=true #914

This commit is contained in:
Sören Weber 2024-09-12 14:58:56 +02:00
parent d0b173546e
commit 7d927f1925
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -1542,21 +1542,21 @@ html[dir="rtl"] .expand > .expand-label > i.fa-chevron-right {
display: none;
}
.include.hide-first-heading h1 + h2:first-of-type,
.include.hide-first-heading h1 + h3:first-of-type,
.include.hide-first-heading h2 + h3:first-of-type,
.include.hide-first-heading h1 + h4:first-of-type,
.include.hide-first-heading h2 + h4:first-of-type,
.include.hide-first-heading h3 + h4:first-of-type,
.include.hide-first-heading h1 + h5:first-of-type,
.include.hide-first-heading h2 + h5:first-of-type,
.include.hide-first-heading h3 + h5:first-of-type,
.include.hide-first-heading h4 + h5:first-of-type,
.include.hide-first-heading h1 + h6:first-of-type,
.include.hide-first-heading h2 + h6:first-of-type,
.include.hide-first-heading h3 + h6:first-of-type,
.include.hide-first-heading h4 + h6:first-of-type,
.include.hide-first-heading h5 + h6:first-of-type {
.include.hide-first-heading h1 ~ h2:first-of-type,
.include.hide-first-heading h1 ~ h3:first-of-type,
.include.hide-first-heading h2 ~ h3:first-of-type,
.include.hide-first-heading h1 ~ h4:first-of-type,
.include.hide-first-heading h2 ~ h4:first-of-type,
.include.hide-first-heading h3 ~ h4:first-of-type,
.include.hide-first-heading h1 ~ h5:first-of-type,
.include.hide-first-heading h2 ~ h5:first-of-type,
.include.hide-first-heading h3 ~ h5:first-of-type,
.include.hide-first-heading h4 ~ h5:first-of-type,
.include.hide-first-heading h1 ~ h6:first-of-type,
.include.hide-first-heading h2 ~ h6:first-of-type,
.include.hide-first-heading h3 ~ h6:first-of-type,
.include.hide-first-heading h4 ~ h6:first-of-type,
.include.hide-first-heading h5 ~ h6:first-of-type {
display: block;
}