Skip to content

Commit f08ba85

Browse files
committed
fix depecation warning
1 parent 5fd6891 commit f08ba85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

encryptcontent/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,11 +468,11 @@ def on_config(self, config, **kwargs):
468468
self.setup['canary_template'] = template_html.read()
469469

470470
# Check if hljs feature need to be enabled, based on theme configuration
471-
if ('highlightjs' in config['theme']._vars
472-
and config['theme']._vars['highlightjs'] # noqa: W503
471+
if ('highlightjs' in config['theme']
472+
and config['theme']['highlightjs'] # noqa: W503
473473
and self.config['hljs'] is not False): # noqa: W503, E127
474474
logger.debug('"highlightjs" value detected on theme config, enable rendering after decryption.')
475-
self.config['hljs'] = config['theme']._vars['highlightjs']
475+
self.config['hljs'] = config['theme']['highlightjs']
476476
elif self.config['hljs']:
477477
logger.debug('"highlightjs" feature enabled, enable rendering after decryption.')
478478
else:

0 commit comments

Comments
 (0)