File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -416,11 +416,8 @@ def apply(self):
416
416
417
417
if linenos_config or continue_linenos or node ["linenos" ]:
418
418
source ["linenos" ] = True
419
-
420
- highlight_args = source ['highlight_args' ] = {}
421
-
422
419
if continue_linenos :
423
- highlight_args [ 'linenostart ' ] = linenostart
420
+ source [ 'highlight_args ' ] = { ' linenostart' : linenostart }
424
421
linenostart += nlines
425
422
426
423
emphasize_linespec = node ['emphasize_lines' ]
@@ -431,6 +428,7 @@ def apply(self):
431
428
'Line number spec is out of range(1-{}): {}' .format (
432
429
nlines , emphasize_linespec ), location = node ['_location' ])
433
430
hl_lines = [i + 1 for i in hl_lines if i < nlines ]
431
+ highlight_args = source .setdefault ('highlight_args' , {})
434
432
highlight_args ['hl_lines' ] = hl_lines
435
433
436
434
# Add code cell CSS class
You can’t perform that action at this time.
0 commit comments