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]: 大佬 为什么我文章中代码块显示异常 不能高亮显示 也不显示是什么类型代码 #108

Closed
ambrosecm opened this issue Dec 8, 2023 · 4 comments
Assignees

Comments

@ambrosecm
Copy link

使用的 Hexo-Theme-Asycn 版本? | What version of Hexo-Theme-Asycn are you use?

2.1.8

是否修改过主题文件? || Has the theme files been modified?

是 (Yes)

使用的浏览器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

Windows

问题描述 | Describe the bug

文章中代码块显示异常 不能高亮显示 也不显示是什么类型代码
已经按文档要求在_config.async.yml中进行配置
image
但是在文章中显示仍然有问题
image

出现问题网站 | Website

https://ambrosecm.github.io/2023/12/06/hello-world/

@MaLuns
Copy link
Owner

MaLuns commented Dec 11, 2023

检查下配置对不对,看看你 hexo 代码高亮配置是啥

@MaLuns
Copy link
Owner

MaLuns commented Dec 11, 2023

如果你 hexo 是 7.0.0 版本, 可以添加下如下配置处理

# _config.yml
highlight:
  enable: true

@MaLuns
Copy link
Owner

MaLuns commented Dec 11, 2023

v2.1.9 已添加 hexo 7.0.0 配置变动兼容处理

@ambrosecm
Copy link
Author

解决了 谢谢大佬

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