summaryrefslogtreecommitdiffstats
path: root/lib/parse/renderer.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2014-07-08 21:45:01 +0200
committerAaron O'Mullan <aaron.omullan@gmail.com>2014-07-08 21:45:01 +0200
commit520045441b9401fadfba2b1b03696bd15b60027d (patch)
tree630fc5cf6f9a00965b654390596b6c0dbb1af34d /lib/parse/renderer.js
parent8b6ebe86b8e54e58900fd77557be84290c589835 (diff)
parent00c3e966d3b217b20e07aaa594a9f23624ba98ef (diff)
downloadgitbook-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/parse/renderer.js')
-rw-r--r--lib/parse/renderer.js2
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) {