diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-07-08 21:45:01 +0200 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-07-08 21:45:01 +0200 |
commit | 520045441b9401fadfba2b1b03696bd15b60027d (patch) | |
tree | 630fc5cf6f9a00965b654390596b6c0dbb1af34d /lib | |
parent | 8b6ebe86b8e54e58900fd77557be84290c589835 (diff) | |
parent | 00c3e966d3b217b20e07aaa594a9f23624ba98ef (diff) | |
download | gitbook-520045441b9401fadfba2b1b03696bd15b60027d.zip gitbook-520045441b9401fadfba2b1b03696bd15b60027d.tar.gz gitbook-520045441b9401fadfba2b1b03696bd15b60027d.tar.bz2 |
Merge pull request #352 from citizenmatt/links_with_fragments
Convert links with fragments from md to html
Diffstat (limited to 'lib')
-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) { |