0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-09 00:42:47 +00:00

Add requested additions to code

Add snippet additions to handle Add h4, Add h4-h5, add h4-h6
Add collection of headers h4-h6 and rendering of h4 to h6.
This commit is contained in:
David Bolack
2024-03-25 16:13:07 -05:00
parent 1705e66be2
commit 7ca10ff5a4
3 changed files with 120 additions and 8 deletions

View File

@@ -791,6 +791,9 @@
// *****************************/
// Default Exclusions
h4,
h5,
h6,
.page:has(.frontCover),
.page:has(.backCover),
.page:has(.insideCover),
@@ -799,6 +802,19 @@
.noToC,
.toc { --TOC: exclude; }
.tocH4 {
h4 { --TOC: include; }
}
.tocH5 {
h4 { --TOC: include; }
h5 { --TOC: include; }
}
.tocH6 {
h4 { --TOC: include; }
h5 { --TOC: include; }
h6 { --TOC: include; }
}
.page {
&:has(.toc)::after { display : none; }
.toc {