We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f42680b commit 8fcc209Copy full SHA for 8fcc209
index.js
@@ -110,7 +110,7 @@ module.exports = function() {
110
for (var i = 0; i < highlights.length; i++) {
111
var highlight = highlights[i];
112
113
- var preBlock = findPreviousSibling(highlight.parentElement, 'pre');
+ var preBlock = findPreviousSibling(highlight, 'pre');
114
var codeBlock = preBlock.childNodes.item(0);
115
116
var total = codeBlock.innerHTML.split('\n').length - 1;
0 commit comments