mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-04 13:03:59 +01:00
docs: fix incorrect header handling in markdown rendering
This commit is contained in:
parent
edbb6db264
commit
8ee7470435
@ -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 New Issue
Block a user