hexo-theme-material icon indicating copy to clipboard operation
hexo-theme-material copied to clipboard

Markdown 代码块显示没有高亮,并且排版有问题

Open clsrfish opened this issue 7 years ago • 8 comments

screenshot from 2017-12-23 15-56-59

clsrfish avatar Dec 23 '17 08:12 clsrfish

站点配置文件

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

主题配置文件

prettify:
    enable: false
    theme: "github-v2"

hanabi:
    enable: false
    line_number: true
    includeDefaultColors: true
    customColors: 

hanabi 改成 true 也是这样

clsrfish avatar Dec 23 '17 08:12 clsrfish

我也遇到同样的问题

vincentduan avatar Dec 27 '17 07:12 vincentduan

我遇到了同样的问题,没有找到好的解决办法,只好放弃高亮用 pre 标签包裹显示了。

musheng66 avatar Dec 28 '17 07:12 musheng66

遇到同样的问题

codeime avatar Dec 31 '17 07:12 codeime

我也遇到过这种问题。原因是我的MD有一个地方出现了语法错误。不知道你的是什么原因

jovensun avatar Jan 27 '18 07:01 jovensun

确认了正确使用高亮了吗? 检查一下是否如下所示,即在最开始的```后加语言名。Java 就应该在最开始写 ```Java

public class highlight
{
    public static void main(String args[])
    {
        System.out.println("Highlight");
    }
}

celiameow233 avatar Feb 02 '18 15:02 celiameow233

你知道在哪个文件里面添加js插件的代码嘛…

labuboco avatar Mar 10 '18 07:03 labuboco

把prettify改成true,重新编译就可以了。

jingyig01 avatar Jun 15 '20 01:06 jingyig01