Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码高亮主题与博客主题不一致现象 #24

Open
SkyzcYou opened this issue Dec 16, 2024 · 2 comments
Open

代码高亮主题与博客主题不一致现象 #24

SkyzcYou opened this issue Dec 16, 2024 · 2 comments

Comments

@SkyzcYou
Copy link
Contributor

theme-terminal 下搭配 highlightjs 实现文章代码段落高亮时。

当更改博客主题从亮色切换到暗色时,代码段主题不会随之变为暗色,导致看起来主题不一致的现象(见下方截图)。
推测是 highlightjs 为收到主题更改信号?不知道具体是哪边的问题,还需要去看一下代码。本人前端新手,若有大佬知道问题所在希望能够指点一二。

现象如图:
image

@wan92hen
Copy link
Owner

现在 highlight.js 这个插件是配置的固定主题模式,还不支持自动切换,可以先选一个亮色暗色都合适的主题。
或者等下这个插件:halo-sigs/plugin-shiki#2

@SkyzcYou
Copy link
Contributor Author

现在 highlight.js 这个插件是配置的固定主题模式,还不支持自动切换,可以先选一个亮色暗色都合适的主题。 或者等下这个插件:halo-sigs/plugin-shiki#2

原来如此,谢谢回复

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

No branches or pull requests

2 participants