blinkfox / hexo-theme-matery

A beautiful hexo blog theme with material design and responsive design.一个基于材料设计和响应式设计而成的全面、美观的Hexo主题。国内访问:http://blinkfox.com
https://blinkfox.github.io/
Apache License 2.0
5.23k stars 1.25k forks source link

Prism代码高亮似乎有问题,好像不起作用,样式文件夹里也找不到Prism.css #8

Closed XiaoSenLuo closed 5 years ago

XiaoSenLuo commented 5 years ago

配置 关于 custom_css:的配置是空的

XiaoSenLuo commented 5 years ago

我下载了官方的prism.css,然后重命名my.css。好像也不起作用

XiaoSenLuo commented 5 years ago

我去看了插件作者的github,很多人都反应不起作用。你能添加Prism.js,prism.css作为代码高亮的插件吗

blinkfox commented 5 years ago

@XiaoSenLuo 话说你解决了没,我到也没怎么用过它那个custom_css的功能,我在matery.css对代码内外边距有做小修改,其他的都是用的hexo-prism-plugin的插件的功能,我的代码高亮都是可以的呢

liweiwei1419 commented 5 years ago

您好,我的代码高亮配置如下:

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

# 参考资料:https://github.com/blinkfox/hexo-theme-matery/blob/develop/README_CN.md
prism_plugin:
  mode: 'preprocess'    # realtime/preprocess
  theme: 'tomorrow'
  line_number: false    # default false

但显示是这样的:

jietu20190127-014838 2x

不知道是我哪里配置错了呢?谢谢。

blinkfox commented 5 years ago

@liweiwei1419 我猜测是你的Markdown中写代码的格式不太对引起的吧,你可以看看我主题中的README.md中代码的书写格式,应该是没问题的。

zengchang233 commented 5 years ago

大佬好,我用prism-plugin代码高亮也出现了和楼上那位一样的情况: image

我用的markdown语法如下: image

我的hexo根目录下的配置如下 image image

请问大佬这是因为什么原因呀,有没有什么建议,感谢~