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.22k stars 1.24k forks source link

代码块里的函数名变大了,这个怎么解决 #919

Open vb3328998 opened 3 months ago

vb3328998 commented 3 months ago

image 函数名变大了,而且还有3个点点

MilkTeaAddicted commented 3 months ago

你解决了吗。之前的框架没有这个问题,但是新版本出现异常了

vb3328998 commented 3 months ago

你解决了吗。之前的框架没有这个问题,但是新版本出现异常了

是的,改了主题的config就可以了

code: lang: false # 代码块是否显示名称 copy: true # 代码块是否可复制 shrink: true # 代码块是否可以收缩 break: true # 代码是否折行

q779 commented 2 months ago

我是改的根目录的config,hexo 7.0.0以上 好像把代码高亮的东西改了

syntax_highlighter: prismjs # or highlight.js
highlight:
  enable: false
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false
prismjs:
  enable: true
  preprocess: true
  line_number: false
  tab_replace: ''

另外要确保你的主题是最新的,我的就是几年前的那个版本,然后手动改了好多文件才搞好的。qwq

Arzelan commented 3 weeks ago

syntax_highlighter: prismjs # or highlight.js 这里改一下。就好了