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

[BUG] x86asm语言代码块边框消失 #467

Open
3 tasks done
skyI23 opened this issue Nov 24, 2024 · 1 comment
Open
3 tasks done

[BUG] x86asm语言代码块边框消失 #467

skyI23 opened this issue Nov 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@skyI23
Copy link

skyI23 commented Nov 24, 2024

提交 Issue 前检查清单

Bug 描述

按照highlightjs官方文档设置代码语言为x86asm后代码块边框不显示。

复现方法

hexo 的 _config.yml 中的高亮配置如下:

syntax_highlighter: highlight.js
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: ''

在文章中插入代码块:

mov    rsp, cr3
and    rsp, 0xffffffffffffe7ff
mov    cr3, rsp

代码类型设置为 x86asm

预期结果

代码块边框消失。

截图

预期显示
image
实际显示
image
具体效果可以看这里

电脑操作系统

Windows

浏览器

Chrome

版本

No response

移动端设备

No response

移动端操作系统

No response

浏览器

No response

版本

No response

其他

No response

@skyI23 skyI23 added the bug Something isn't working label Nov 24, 2024
@skyI23
Copy link
Author

skyI23 commented Nov 24, 2024

盲猜是redefine主题匹配代码块的时候找不到这种形式的代码块,导致这一部分采用hexo默认主题渲染的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants