Giter VIP home page Giter VIP logo

Comments (8)

cofess avatar cofess commented on June 12, 2024

什么样的公式?换一个markdown渲染引擎试一下,Hexo默认使用"hexo-renderer-marked"引擎渲染网页,好像会强制转换一些特殊字符

from hexo-theme-pure.

STHSF avatar STHSF commented on June 12, 2024

就是正常的latex语法的公式。我也将原来的渲染引擎换成了“hexo-renderer-kramed”,也修改了一些转译字符,比如escape: /^\([`*[]()#$+-.!_>])/和 em: /^*((?:**|[\s\S])+?)*(?!*)/。这种方法没有效果。然后我又跟换为“hexo-renderer-pandoc”引擎,但也还是没有效果。所以我问下你在博客里插入公式的时候有没有遇到这样的情况。

from hexo-theme-pure.

cofess avatar cofess commented on June 12, 2024

更新了一下dev分支,已经支持数学公式,具体配置看#readme

from hexo-theme-pure.

STHSF avatar STHSF commented on June 12, 2024

我按照上面的步骤做了一下,为什么我没有生成mathjax.ejs文件,还是这个文件需要自己手动添加?还有就是你在博客中提到的加载CSS这部分是什么意思,我不太懂,能否解释一下,谢谢。

from hexo-theme-pure.

cofess avatar cofess commented on June 12, 2024

主题已经支持数学公式,用hexo-renderer-markdown-it-plus引擎替换默认的渲染引擎hexo-renderer-marked即可

from hexo-theme-pure.

STHSF avatar STHSF commented on June 12, 2024

嗯 对的 我已经替换了,但是还是不行,所以不知道问题出在哪儿?我是需要重新将主题pull下来么

from hexo-theme-pure.

cofess avatar cofess commented on June 12, 2024

本地主题要更新一下

from hexo-theme-pure.

STHSF avatar STHSF commented on June 12, 2024

OK,懂了,谢谢......

from hexo-theme-pure.

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.