0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-10 20:03:03 +00:00

Document level toggles need to look at pages, not page.

This commit is contained in:
David Bolack
2024-09-10 12:15:12 -05:00
parent ed376f3154
commit f8d170be87

View File

@@ -797,7 +797,7 @@
// *****************************/ // *****************************/
// Default Exclusions // Default Exclusions
// Anything not exlcuded is included, default Headers are H1, H2, and H3. // Anything not excluded is included, default Headers are H1, H2, and H3.
h4, h4,
h5, h5,
h6, h6,
@@ -814,15 +814,15 @@ h6,
.tocDepthH5 :is(h1, h2, h3, h4, h5) {--TOC: include; } .tocDepthH5 :is(h1, h2, h3, h4, h5) {--TOC: include; }
.tocDepthH6 :is(h1, h2, h3, h4, h5, h6) {--TOC: include; } .tocDepthH6 :is(h1, h2, h3, h4, h5, h6) {--TOC: include; }
.page:has(.tocGlobalH4) { .pages:has(.tocGlobalH4) {
h4 {--TOC: include; } h4 {--TOC: include; }
} }
.page:has(.tocGlobalH5) { .pages:has(.tocGlobalH5) {
h4, h5 {--TOC: include; } h4, h5 {--TOC: include; }
} }
.page:has(.tocGlobalH6) { .pages:has(.tocGlobalH6) {
h4, h5, h6 {--TOC: include; } h4, h5, h6 {--TOC: include; }
} }