summaryrefslogtreecommitdiffstats
path: root/lib/page/html.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/page/html.js')
-rw-r--r--lib/page/html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/page/html.js b/lib/page/html.js
index d667059..45fae0d 100644
--- a/lib/page/html.js
+++ b/lib/page/html.js
@@ -164,7 +164,7 @@ HTMLPipeline.prototype.applyAnnotations = function() {
replaceText(that.$, this, searchRegex, function(match) {
that.opts.onAnnotation(annotation);
- return '<a href="'+that.opts.onRelativeLink(annotation.href) + '#' + annotation.id+'" '
+ return '<a href="' + that.opts.onRelativeLink(annotation.href) + '" '
+ 'class="glossary-term" title="'+_.escape(annotation.description)+'">'
+ match
+ '</a>';