fix menu links

This commit is contained in:
Leo Horie 2017-01-08 22:10:36 -05:00
parent fb2b8a5f79
commit 30d0166830

View file

@ -37,7 +37,7 @@ function generate(pathname) {
var modified = guides.match(link) ? guides.replace(link, replace) : methods.replace(link, replace)
return title + modified + "\n\n"
})
.replace(/(\[[^\]]+)(\.md)/gim, function(match, path, extension) {
.replace(/(\]\([^\)]+)(\.md)/gim, function(match, path, extension) {
return path + (path.match(/http/) ? extension : ".html")
}) // fix links
var html = layout