GithubHelp home page GithubHelp logo

Comments (3)

q779 avatar q779 commented on June 19, 2024 1

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

from hexo-theme-matery.

MilkTeaAddicted avatar MilkTeaAddicted commented on June 19, 2024

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

from hexo-theme-matery.

vb3328998 avatar vb3328998 commented on June 19, 2024

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

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

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

from hexo-theme-matery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.