diff options
author | Matt Ellis <m.t.ellis@gmail.com> | 2014-07-08 16:25:39 +0100 |
---|---|---|
committer | Matt Ellis <m.t.ellis@gmail.com> | 2014-07-08 16:25:39 +0100 |
commit | 00c3e966d3b217b20e07aaa594a9f23624ba98ef (patch) | |
tree | 630fc5cf6f9a00965b654390596b6c0dbb1af34d /lib/parse | |
parent | 8b6ebe86b8e54e58900fd77557be84290c589835 (diff) | |
download | gitbook-00c3e966d3b217b20e07aaa594a9f23624ba98ef.zip gitbook-00c3e966d3b217b20e07aaa594a9f23624ba98ef.tar.gz gitbook-00c3e966d3b217b20e07aaa594a9f23624ba98ef.tar.bz2 |
Convert links with fragments from md to html
Diffstat (limited to 'lib/parse')
-rw-r--r-- | lib/parse/renderer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse/renderer.js b/lib/parse/renderer.js index 4da312e..397ab80 100644 --- a/lib/parse/renderer.js +++ b/lib/parse/renderer.js @@ -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) { |