mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 17:12:59 +00:00
docs: fix incorrect header handling in markdown rendering
This commit is contained in:
parent
edbb6db264
commit
8ee7470435
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +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(/<(\/?)h4>/g, "<$1h3>")
|
||||||
.replace(/<h5(\/?)>/g, "<h4$1>")
|
.replace(/<(\/?)h5>/g, "<$1h4>")
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue