more documentation tweaks
This commit is contained in:
parent
74ded82165
commit
be27f4d525
6 changed files with 11 additions and 8 deletions
|
|
@ -39,6 +39,7 @@ function generate(pathname) {
|
|||
})
|
||||
.replace(/\.md/gim, ".html") // fix links
|
||||
var html = layout
|
||||
.replace(/\[version\]/, version) // update version
|
||||
.replace(/\[body\]/, marked(fixed))
|
||||
.replace(/<h5 id="([^"]+?)">([^<]+?)<\/h5>/gim, function(match, id, text) { // fix anchors
|
||||
return "<h5 id=\"" + text.toLowerCase().replace(/\.|\[|\]|"|\//g, "") + "\">" + text + "</h5>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue