[Documentation] More service infrastructure

MissionControl/vista#21
This commit is contained in:
Victor Woeltjen
2015-08-04 16:11:13 -07:00
parent f8dd69bbfa
commit fc0c902886
4 changed files with 211 additions and 8 deletions

View File

@@ -99,7 +99,7 @@ GLOBAL.window = GLOBAL.window || GLOBAL; // nomnoml expects window to be define
customRenderer.link = function (href, title, text) {
// ...but only if they look like relative paths
return (href || "").indexOf(":") === -1 && href[0] !== "/" ?
renderer.link(href.replace(/md$/, "html"), title, text) :
renderer.link(href.replace(/\.md/, ".html"), title, text) :
renderer.link.apply(renderer, arguments);
};
return customRenderer;