From 227f90fa008c3c840c310a5583f426f3121dbf3d Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 31 May 2023 09:07:10 +0200 Subject: [PATCH] fix code block auto-animate bug that caused unmatched lines to appear without fading in --- js/controllers/autoanimate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/controllers/autoanimate.js b/js/controllers/autoanimate.js index 24eba329..3fd2c99c 100644 --- a/js/controllers/autoanimate.js +++ b/js/controllers/autoanimate.js @@ -504,7 +504,7 @@ export default class AutoAnimate { } ); // Line numbers - this.findAutoAnimateMatches( pairs, pair.from, pair.to, '.hljs .hljs-ln-line[data-line-number]', node => { + this.findAutoAnimateMatches( pairs, pair.from, pair.to, '.hljs .hljs-ln-numbers[data-line-number]', node => { return node.getAttribute( 'data-line-number' ); }, { scale: false,