From 6eb1605be634799cc56d97f83a25d3e7bb87f86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Tue, 8 Dec 2015 15:27:11 +0100 Subject: [PATCH] Fix #1041 : fix glossary terms being replaced in script (ex: math) --- lib/utils/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/page.js b/lib/utils/page.js index 739b59c31..0636ce858 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -274,7 +274,7 @@ function normalizeHtml(src, options) { $('*').each(function() { // Ignore codeblocks - if (_.contains(['code', 'pre', 'a'], this.name.toLowerCase())) return; + if (_.contains(['code', 'pre', 'a', 'script'], this.name.toLowerCase())) return; replaceText($, this, r, function(match) { // Add to files index in glossary