summaryrefslogtreecommitdiffstats
path: root/lib/utils
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-12-08 15:27:11 +0100
committerSamy Pessé <samypesse@gmail.com>2015-12-08 15:27:11 +0100
commit6eb1605be634799cc56d97f83a25d3e7bb87f86d (patch)
tree9188af08fd02ddd32eee7256a1e086b2be07cf8e /lib/utils
parent5c16aec096b7d711f5206f7b251f2d6fbee18618 (diff)
downloadgitbook-6eb1605be634799cc56d97f83a25d3e7bb87f86d.zip
gitbook-6eb1605be634799cc56d97f83a25d3e7bb87f86d.tar.gz
gitbook-6eb1605be634799cc56d97f83a25d3e7bb87f86d.tar.bz2
Fix #1041 : fix glossary terms being replaced in script (ex: math)
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/page.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js
index 739b59c..0636ce8 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