Replace glossary terms by links to glossary

This commit is contained in:
Samy Pessé
2015-01-22 19:45:14 +01:00
parent 9e172549d1
commit 1d13624d3d
+1 -1
View File
@@ -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>";
});
});
});