bill-xia / hexo-theme-mashiro

CTeX-like Hexo theme.
70 stars 5 forks source link

code rendering error #10

Open igzat1no opened 2 weeks ago

igzat1no commented 2 weeks ago

Hi, I found that the code rendering has been broken with the newest hexo 7.3.0. I tried to downgrade hexo to 6.3.0 and it worked.

With hexo 7.3.0 it looks like this:

image

bill-xia commented 2 weeks ago

Thank you for raising this issue. The problem arises because this theme requires disabling Hexo's built-in code highlighter. After Hexo 7.0.0, the syntax for disabling Hexo's built-in highlighter in the configuration file has changed. For details, please refer to here: https://hexo.io/docs/syntax-highlight#Disabled. For Hexo version 7.0.0 and above, you need to add the following line to the site configuration file (i.e, _config.yml, not _config.mashiro.yml):

syntax_highlighter: # empty

This will disable the built-in syntax highlighter in Hexo 7.0.0 and above. I'll mention this in the documentation too.