mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-10-31 21:33:02 +00:00
docs: h5→h4, h4→h3; style subheadings
This commit is contained in:
parent
ffc90ed179
commit
1a227e3bd8
2 changed files with 15 additions and 0 deletions
|
@ -88,6 +88,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.linked-section-heading {
|
.linked-section-heading {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
@ -111,6 +112,18 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
align-self: flex-start;
|
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 {
|
nav {
|
||||||
background: var(--bg-bright);
|
background: var(--bg-bright);
|
||||||
|
|
|
@ -39,6 +39,8 @@ function make_section(acc, cat_current, cats) {
|
||||||
.replace(/\s+/g, "-")
|
.replace(/\s+/g, "-")
|
||||||
.replace(/-.*$/, ""),
|
.replace(/-.*$/, ""),
|
||||||
content: markdown.render(acc.slice(1).join("\n"))
|
content: markdown.render(acc.slice(1).join("\n"))
|
||||||
|
.replace(/<h4(\/?)>/g, "<h3$1>")
|
||||||
|
.replace(/<h5(\/?)>/g, "<h4$1>")
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue