File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,14 @@ while (dirs.length) {
65
65
return ;
66
66
}
67
67
const lang = langClass . replace ( 'language-' , '' ) ;
68
- const lines = node . html ( ) . split ( '\n' ) ;
69
- const boring = lines . map ( ( line ) =>
68
+ const originalLines = node . html ( ) . split ( '\n' ) ;
69
+ const boring = originalLines . map ( ( line ) =>
70
70
line . includes ( '<span class="boring">' ) ,
71
71
) ;
72
- const ellipsis = lines . map ( ( line ) => line . includes ( '// ...' ) ) ;
72
+ const ellipsis = originalLines . map ( ( line ) => line . includes ( '// ...' ) ) ;
73
73
const target = entities . decode ( node . text ( ) ) ;
74
- const highlighted = hljs . highlight ( lang , target ) . value ;
75
- const result = highlighted
76
- . split ( '\n' )
74
+ const highlightedLines = hljs . highlight ( lang , target ) . value . split ( '\n' ) ;
75
+ const result = highlightedLines
77
76
. map ( function ( line , i ) {
78
77
if ( boring [ i ] ) {
79
78
line = '<span class="boring">' + line ;
You can’t perform that action at this time.
0 commit comments