honjun / hexo-theme-sakura

682 stars 211 forks source link

代码块显示不正常怎么回事? #35

Closed wudihechao closed 4 years ago

wudihechao commented 4 years ago

为什么代码每一行是单独额一个代码块?

codebug

https://hewanyue.com/blog/f989902e.html

KaizynX commented 4 years ago

同问代码渲染出现问题 image

KaizynX commented 4 years ago

我的问题解决了,问题在于根目录下的 _config.yml 文件

highlight: 
  enable: false
  line_number: false
  auto_detect: false
  tab_replace:

上面三个选项我之前全写了 true

wudihechao commented 4 years ago

我的问题解决了,问题在于根目录下的 _config.yml 文件

highlight: 
  enable: false
  line_number: false
  auto_detect: false
  tab_replace:

上面三个选项我之前全写了 true

哇 果然可以。我是改了他得渲染代码,虽然显示正常了,不过没有了一键复制粘贴。还是你这个原版好。感谢~