-
Notifications
You must be signed in to change notification settings - Fork 217
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
代码高亮有问题,背景色影响了主题 #390
Comments
对那些padding 确实没有按照背景颜色来。下一个版本修复。 |
@twitf 这个问题是你的配置问题。我配置了一下没有你这个问题。使用下面这个配置: #! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
enable: true
theme: "material-theme-palenight" #主题名 |
我觉得你那个不是最新版本,我现在时这样处理的: .post-html p code,.post-html li code {
margin: 0;
font-size: .85em;
overflow-wrap: break-word;
/**background-color:var(--bg-accent-05);*/
word-wrap: break-word;
padding: .1rem .3rem;
border-radius: .3rem;
color: var(--text-accent)!important
} |
我用的就是版本 2.5.3 哦 |
我也遇到这个问题了 现在最新的版本是2.5.2 配置了: |
你可以截图看看你的配置吗?你的配置的格式感觉不对。shiki 后面的两个参数需要有缩紧两个空格才行。 #! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
enable: true
theme: "material-theme-palenight" #主题名 |
截图在上面👆 |
不清楚为什么我这个不行😂 |
如果你们的代码高亮出现了问题,很有可能你们在 hexo 下之前用过了其它的主题安装着其他主题的 hexo 插件。或者你在用一些其他的插件。但是 Aurora 对有一些插件是无法互相兼容的。如果你测试出是哪个插件。请另外提一个 issue,我后面看看能否兼容。 如果你不知道哪个插件不兼容,可以直接用我下面的 ...
"dependencies": {
"hexo": "^6.3.0",
"hexo-filter-mathjax": "^0.9.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
"hexo-generator-tag": "^2.0.0",
"hexo-plugin-aurora": "^1.2.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.1.0",
"hexo-renderer-stylus": "^3.0.0",
"hexo-server": "^3.0.0",
"hexo-theme-aurora": "^2.0.0"
}
... |
当我升级主题至最新的版本 |
能否支持一下pandoc渲染?感谢🙏 |
The text was updated successfully, but these errors were encountered: