Convert links with fragments from md to html

This commit is contained in:
Matt Ellis
2014-07-08 16:25:39 +01:00
parent 8b6ebe86b8
commit 00c3e966d3
+1 -1
View File
@@ -56,7 +56,7 @@ GitBookRenderer.prototype.link = function(href, title, text) {
// Relative link, rewrite it to point to github repo
if(links.isRelative(_href)) {
if (path.extname(_href) == ".md") {
if (path.extname(parsed.path) == ".md") {
_href = links.toAbsolute(_href, o.dir || "./", o.outdir || "./");
if (o.singleFile) {