Code Monkey home page Code Monkey logo

Comments (6)

kitian616 avatar kitian616 commented on July 23, 2024

要加 mathjax: true 的配置才行,默认是不开启的,见 https://github.com/kitian616/jekyll-TeXt-theme/blob/master/README.md#markdown-头信息增强

from jekyll-text-theme.

Holy-Shine avatar Holy-Shine commented on July 23, 2024

@kitian616 嗯嗯谢谢作者。解决了部分问题,行内公式无法渲染,比如$f(x)=x+1$;还有就是单行公式无法独立成行。没用过Mathjax的,一直用的KaTex
能不能使用其他渲染引擎的?

from jekyll-text-theme.

kitian616 avatar kitian616 commented on July 23, 2024

因为用的是 kramdown 转换器,它对公式做了一些处理, 见kramdonw#mathjax
为了打到更好的体验,我的推荐是用 $$ 来表示数学公式(行内),如果要换行,那就直接在 markdown 把公式换行好了,参考示例
当然你也可以加上转译字符来 \$\$ 表示独立行的公式。

from jekyll-text-theme.

Holy-Shine avatar Holy-Shine commented on July 23, 2024

@kitian616 那么如何更改渲染引擎呢,是不是只要改一下_config.yml里的条目就行了?

from jekyll-text-theme.

kitian616 avatar kitian616 commented on July 23, 2024

这个改的话就不支持 Github Page 了,就改改文章中的公式格式呗,又不是很麻烦。。

from jekyll-text-theme.

Holy-Shine avatar Holy-Shine commented on July 23, 2024

好的感谢作者的耐心解答

from jekyll-text-theme.

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.