auroral-ui / hexo-theme-aurora

🏳️‍🌈 Futuristic auroral Hexo theme.
https://blog.bennyxguo.com
MIT License
1.33k stars 211 forks source link

当根目录的prismjs和highlight为false,主题shiki代码高亮为true报错 #398

Closed try-to-change closed 6 months ago

try-to-change commented 8 months ago

Is your feature request related to a problem? Please describe. 当我按照文档对配置文件进行修改highlight,prismjs都为false 但是打开主题的代码高亮选项shiki, 就发生了报错

Describe the solution you'd like 但之前有一次好像是正常显示,然后后面再试不行了

Additional context or screenshots image image

Tim-Saijun commented 8 months ago

hexo-plugin-aurora v1.8.3 & hexo-theme-aurora v2.5.2 相同的配置

highlight:
  enable: false
  # line_number: true
  # auto_detect: false
  # tab_replace: ''
  # wrap: true
  # hljs: false
prismjs:
  enable: false
  # preprocess: false
  # line_number: true
  # tab_replace: ''
#! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
  enable: true
  theme: vitesse-dark
  backgroundColor: '#1a1a1a'

generate无报错,控制台无报错,就是不亮(多种语言)

bennyxguo commented 8 months ago

Is your feature request related to a problem? Please describe. 当我按照文档对配置文件进行修改highlight,prismjs都为false 但是打开主题的代码高亮选项shiki, 就发生了报错

Describe the solution you'd like 但之前有一次好像是正常显示,然后后面再试不行了

Additional context or screenshots image image

你这个属于代码块里面有语法错误。

bennyxguo commented 8 months ago

hexo-plugin-aurora v1.8.3 & hexo-theme-aurora v2.5.2 相同的配置

highlight:
  enable: false
  # line_number: true
  # auto_detect: false
  # tab_replace: ''
  # wrap: true
  # hljs: false
prismjs:
  enable: false
  # preprocess: false
  # line_number: true
  # tab_replace: ''
#! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
  enable: true
  theme: vitesse-dark
  backgroundColor: '#1a1a1a'

generate无报错,控制台无报错,就是不亮(多种语言)

有源代码的链接吗?还有你的网站上线了吗?有博客的地址吗?

Tim-Saijun commented 8 months ago

hexo-plugin-aurora v1.8.3 & hexo-theme-aurora v2.5.2 相同的配置

highlight:
  enable: false
  # line_number: true
  # auto_detect: false
  # tab_replace: ''
  # wrap: true
  # hljs: false
prismjs:
  enable: false
  # preprocess: false
  # line_number: true
  # tab_replace: ''
#! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
  enable: true
  theme: vitesse-dark
  backgroundColor: '#1a1a1a'

generate无报错,控制台无报错,就是不亮(多种语言)

有源代码的链接吗?还有你的网站上线了吗?有博客的地址吗?

https://www.zair.top

TTsdzb commented 8 months ago

hexo-plugin-aurora v1.8.3 & hexo-theme-aurora v2.5.2 相同的配置

highlight:
  enable: false
  # line_number: true
  # auto_detect: false
  # tab_replace: ''
  # wrap: true
  # hljs: false
prismjs:
  enable: false
  # preprocess: false
  # line_number: true
  # tab_replace: ''
#! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
  enable: true
  theme: vitesse-dark
  backgroundColor: '#1a1a1a'

generate无报错,控制台无报错,就是不亮(多种语言)

如果使用 hexo@7.0.0,回退到 6.3.0 试一下

Tim-Saijun commented 8 months ago

hexo-plugin-aurora v1.8.3 & hexo-theme-aurora v2.5.2 相同的配置

highlight:
  enable: false
  # line_number: true
  # auto_detect: false
  # tab_replace: ''
  # wrap: true
  # hljs: false
prismjs:
  enable: false
  # preprocess: false
  # line_number: true
  # tab_replace: ''
#! ---------------------------------------------------------------
#! Highlighter Shiki
#! ---------------------------------------------------------------
shiki:
  enable: true
  theme: vitesse-dark
  backgroundColor: '#1a1a1a'

generate无报错,控制台无报错,就是不亮(多种语言)

如果使用 hexo@7.0.0,回退到 6.3.0 试一下

检查过了

  "hexo": {
    "version": "6.3.0"
  },
bennyxguo commented 8 months ago

可以看看是否有插件和 aurora 的生成器插件冲突了。看看这里 https://github.com/auroral-ui/hexo-theme-aurora/issues/390#issuecomment-1789511301

auroral-bot[bot] commented 7 months ago

This issue is stale because it has been open for 30 days with no activity.

auroral-bot[bot] commented 6 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

cyl-ly commented 6 months ago

Is your feature request related to a problem? Please describe. 当我按照文档对配置文件进行修改highlight,prismjs都为false 但是打开主题的代码高亮选项shiki, 就发生了报错

Describe the solution you'd like 但之前有一次好像是正常显示,然后后面再试不行了

Additional context or screenshots image image

你这个问题最后怎么解决的