summaryrefslogtreecommitdiffstats
path: root/lib/utils
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-22 19:45:14 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-22 19:45:14 +0100
commit1d13624d3dd30ecf02065772a516354e1571df8b (patch)
tree0b248c7c2429ec3b46b7f616d7cc11eb1f068871 /lib/utils
parent9e172549d162ce6ec2d0e454db997418a2b9795f (diff)
downloadgitbook-1d13624d3dd30ecf02065772a516354e1571df8b.zip
gitbook-1d13624d3dd30ecf02065772a516354e1571df8b.tar.gz
gitbook-1d13624d3dd30ecf02065772a516354e1571df8b.tar.bz2
Replace glossary terms by links to glossary
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/page.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js
index 8fa704d..9a468d6 100644
--- a/lib/utils/page.js
+++ b/lib/utils/page.js
@@ -98,7 +98,7 @@ function normalizeHtml(src, options) {
$("*").each(function() {
replaceText($, this, r, function(match) {
- return "<span class='glossary-term' data-glossary-term='"+term.id+"' title='"+term.description+"'>"+match+"</span>";
+ return "<a href='"+links.toAbsolute("GLOSSARY.html", options.base, options.output)+"#"+term.id+"' class='glossary-term' title='"+term.description+"'>"+match+"</span>";
});
});
});