diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-22 19:45:14 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-22 19:45:14 +0100 |
commit | 1d13624d3dd30ecf02065772a516354e1571df8b (patch) | |
tree | 0b248c7c2429ec3b46b7f616d7cc11eb1f068871 /lib/utils | |
parent | 9e172549d162ce6ec2d0e454db997418a2b9795f (diff) | |
download | gitbook-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.js | 2 |
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>"; }); }); }); |