fix: #177
This commit is contained in:
parent
28a51f44ec
commit
560e52768e
|
@ -31,10 +31,12 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
||||||
var count = 0;
|
var count = 0;
|
||||||
for (var i = 0; i < container.children.length; i++) {
|
for (var i = 0; i < container.children.length; i++) {
|
||||||
var node = container.children[i];
|
var node = container.children[i];
|
||||||
var ignoredTagNames = ['CODE-EXAMPLE', 'SCRIPT', 'CODE', 'EM', 'STRONG'];
|
console.log(node);
|
||||||
|
var ignoredTagNames = ['CODE-EXAMPLE', 'SCRIPT', 'CODE', 'EM', 'STRONG', 'CODE-TABS'];
|
||||||
// ignore example code.
|
// ignore example code.
|
||||||
if (node.classList.contains('code-example') ||
|
if (node.classList.contains('code-example') ||
|
||||||
ignoredTagNames.indexOf(node.tagName) >= 0) {
|
ignoredTagNames.indexOf(node.tagName) >= 0) {
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue