Coder Social home page Coder Social logo

增加 MathJax 的解析支持 about waline HOT 5 CLOSED

walinejs avatar walinejs commented on May 13, 2024
增加 MathJax 的解析支持

from waline.

Comments (5)

Sweetlemon68 avatar Sweetlemon68 commented on May 13, 2024

我有一个站很需要数学公式解析,请问您还有计划做这方面的支持吗?谢谢!

from waline.

lizheming avatar lizheming commented on May 13, 2024

已经支持了的,$$x^2$$ 你试试。目前是用的 Katext 渲染成了 MathML 在 Chrome 里的支持可能一般般,不过在 Firefox 里效果还是不错的。

from waline.

Sweetlemon68 avatar Sweetlemon68 commented on May 13, 2024

噢,我这边的环境确实主要是 Chrome 系的,所以效果不是太好。请问能不能提供用 KaTeX 渲染成 HTML 的选项呢?我之前有个 hexo 站用的是 Valine,用 KaTeX 渲染成 HTML,Chrome 和 Firefox 都能比较完美地显示。

效果

结构

from waline.

lizheming avatar lizheming commented on May 13, 2024

我这边试了下 HTML 渲染不太行才用的 MathML 的,可能和 Waline 是在服务端渲染数学公式有关系。目前先只能这样了,等之后看看是否有更好的解决方案吧。

from waline.

Sweetlemon68 avatar Sweetlemon68 commented on May 13, 2024

好的,谢谢!

from waline.

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.