Ignore codeblocks when replacing glossary terms

This commit is contained in:
Samy Pessé
2015-03-23 11:00:50 +01:00
parent 7d9dc08a38
commit 63ee94ff89
+3
View File
@@ -242,6 +242,9 @@ function normalizeHtml(src, options) {
var includedInFiles = false;
$("*").each(function() {
// Ignore codeblocks
if (_.contains(["code", "pre"], this.name.toLowerCase())) return;
replaceText($, this, r, function(match) {
// Add to files index in glossary
if (!includedInFiles) {