mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
Docs/Reference: Remove arguments from command slugs
This commit is contained in:
parent
5b26bbc0b8
commit
bf71aae1d3
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue