EvanNotFound / hexo-theme-redefine

Simplicity in Speed, Purity in Design. Redefine Your Hexo Journey.
https://redefine.ohevan.com
GNU General Public License v3.0
1.5k stars 129 forks source link

[BUG] 选择的代码块主题显示的颜色与hljs不同 #437

Closed RocketMaDev closed 1 month ago

RocketMaDev commented 2 months ago

提交 Issue 前检查清单

Bug 描述

例如选择atom-one-dark,diff在深色主题下的颜色表现十分糟糕,但是highlight.js官方预览界面下颜色合适;看起来选择的配色方案与官方预览不同

复现方法

_config.redefine.yml中设置相关配色

  code_block: # irrelevant settings skipped
    highlight_theme: # Color scheme for highlightjs code highlighting. For preview, see https://highlightjs.org/examples
      dark: atom-one-dark # dark mode theme, support: github-dark, monokai-sublime, vs2015, night-owl, atom-one-dark, nord, tokyo-night-dark, a11y-dark, agate

新建文件添加diff代码块

预期结果

屏幕截图_20240911_193600

截图

屏幕截图_20240911_193646

电脑操作系统

Arch Linux

浏览器

Edge

版本

128

移动端设备

No response

移动端操作系统

No response

浏览器

No response

版本

No response

其他

No response

EvanNotFound commented 1 month ago

Redefine v2.7.2 已更新 / 修复此功能,请前往 Release 页面 更新。

RocketMaDev commented 1 month ago

屏幕截图_20241027_140438

已更新 v2.7.2,atom-one-dark配色主题未见修复

RocketMaDev commented 1 month ago

@EvanNotFound 请重新打开issue