diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-12-08 15:27:11 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-12-08 15:27:11 +0100 |
commit | 6eb1605be634799cc56d97f83a25d3e7bb87f86d (patch) | |
tree | 9188af08fd02ddd32eee7256a1e086b2be07cf8e /lib/utils | |
parent | 5c16aec096b7d711f5206f7b251f2d6fbee18618 (diff) | |
download | gitbook-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.js | 2 |
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 |