Skip to content

想问一下为什么我的highlight没有生效 #1331

Answered by hoytzhang
hoytzhang asked this question in Q&A
Discussion options

You must be logged in to vote

检查一下你用的CDN是否能正常连接?换一个试试?

解决了:

  1. 升级hexo 到最新版本(7.3.0)
  2. _config.yml 如下配置
highlight:
  line_number: false
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false
prismjs:
  preprocess: true
  line_number: true
  tab_replace: ''

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hoytzhang
Comment options

@ppoffice
Comment options

@hoytzhang
Comment options

Answer selected by hoytzhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants