diff --git a/pageUpdater.js b/pageUpdater.js index 815a83c..9c707af 100644 --- a/pageUpdater.js +++ b/pageUpdater.js @@ -89,8 +89,8 @@ function highlighter(json, full = true) { var element = json[i] if (element.type == "element") { if (element.children.length > 0) { + var valid = true if (element.attributes) { - var valid = true for (var x in element.attributes) { var attribute = element.attributes[x] if (attribute.key == "class" && attribute.value == "value") { @@ -99,6 +99,10 @@ function highlighter(json, full = true) { } } } + + if (element.tagName == "code") { + valid = false + } if (valid) { element.children = highlighter(element.children, full)