Skip to content

Fix toggling dark mode with highlightjs: false (in mkdocs theme)#54

Merged
oprypin merged 1 commit intomasterfrom
hljsdark
Mar 20, 2026
Merged

Fix toggling dark mode with highlightjs: false (in mkdocs theme)#54
oprypin merged 1 commit intomasterfrom
hljsdark

Conversation

@oprypin
Copy link
Member

@oprypin oprypin commented Mar 19, 2026

When highlightjs is disabled, some HTML elements don't exist. But the code didn't expect this and had an error, interrupting the entire action of toggling dark mode.

When highlightjs is disabled, some HTML elements don't exist. But the code didn't expect this and had an error, interrupting the entire action of toggling dark mode.
@oprypin oprypin merged commit 6c09fd0 into master Mar 20, 2026
25 checks passed
@oprypin oprypin deleted the hljsdark branch March 20, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disabling highlight.js breaks switching between light and dark mode

1 participant