mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 17:43:24 +00:00
Fix #1041 : fix glossary terms being replaced in script (ex: math)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user