docs: fix incorrect header handling in markdown rendering

This commit is contained in:
Starbeamrainbowlabs 2023-12-19 23:41:37 +00:00
parent edbb6db264
commit 8ee7470435
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -39,8 +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>")
.replace(/<(\/?)h4>/g, "<$1h3>")
.replace(/<(\/?)h5>/g, "<$1h4>")
};
}