aboutsummaryrefslogtreecommitdiff
path: root/assets/js/even.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/even.js')
-rw-r--r--assets/js/even.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/even.js b/assets/js/even.js
index 01b9200..5cb63ca 100644
--- a/assets/js/even.js
+++ b/assets/js/even.js
@@ -171,7 +171,7 @@ Even.chroma = function() {
const blocks = document.querySelectorAll('.highlight > .chroma');
for (let i = 0; i < blocks.length; i++) {
const block = blocks[i];
- const afterHighLight = block.querySelector('pre.chroma > code');
+ const afterHighLight = block.querySelector('pre.chroma > code[data-lang]');
const lang = afterHighLight ? afterHighLight.className : '';
block.className += ' ' + lang;
}