Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vb3328998 opened this issue Apr 10, 2024 · 6 comments
Open

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

vb3328998 opened this issue Apr 10, 2024 · 6 comments

Comments

@vb3328998
Copy link

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

@MilkTeaAddicted
Copy link

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

@vb3328998
Copy link
Author

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

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

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

@q779
Copy link

q779 commented May 8, 2024

我是改的根目录的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
Copy link

Arzelan commented Jun 28, 2024

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

@zhouzhou1o
Copy link

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

这个在哪里

@Arzelan
Copy link

Arzelan commented Aug 7, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants