docs: h5→h4, h4→h3; style subheadings

This commit is contained in:
Starbeamrainbowlabs 2023-07-11 20:31:43 +01:00
parent ffc90ed179
commit 1a227e3bd8
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 15 additions and 0 deletions

View File

@ -88,6 +88,7 @@ h1, h2, h3, h4, h5, h6 {
text-align: center;
word-wrap: break-word;
}
.linked-section-heading {
display: flex;
}
@ -111,6 +112,18 @@ h1, h2, h3, h4, h5, h6 {
line-height: 1.5;
align-self: flex-start;
}
h3 {
margin-top: 2em;
padding-bottom: 0.2em;
border-bottom: 0.1em solid var(--cat-colour);
}
h3, h3 > code {
font-size: 1.1em;
text-align: left;
}
h3 > code {
background: transparent;
}
nav {
background: var(--bg-bright);

View File

@ -39,6 +39,8 @@ function make_section(acc, cat_current, cats) {
.replace(/\s+/g, "-")
.replace(/-.*$/, ""),
content: markdown.render(acc.slice(1).join("\n"))
.replace(/<h4(\/?)>/g, "<h3$1>")
.replace(/<h5(\/?)>/g, "<h4$1>")
};
}