more documentation tweaks

This commit is contained in:
Leo Horie 2017-01-08 08:21:33 -05:00
parent 74ded82165
commit be27f4d525
6 changed files with 11 additions and 8 deletions

View file

@ -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(/\.|\[|\]|&quot;|\//g, "") + "\">" + text + "</h5>"