mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
Docs/Reference: Remove arguments from command slugs
This commit is contained in:
parent
5b26bbc0b8
commit
bf71aae1d3
@ -15,7 +15,8 @@ module.exports = function parse_sections(source) {
|
||||
result.push({
|
||||
title: htmlentities.encode(title),
|
||||
slug: title.toLowerCase().replace(/[^a-z0-9-_\s]+/gi, "")
|
||||
.replace(/\s+/g, "-"),
|
||||
.replace(/\s+/g, "-")
|
||||
.replace(/-.*$/, ""),
|
||||
content: markdown.render(acc.slice(1).join("\n"))
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user