How to support latex in github-pages?

前端 未结 4 1376
孤城傲影
孤城傲影 2020-12-22 16:04

I use jekyll to write post and show it in github-pages. My source file is writen with markdown.

How can I insert formula into the markdown file?

4条回答
  •  暖寄归人
    2020-12-22 16:36

    Since resources online have changed regarding this question, here's an update on supporting LateX with GitHub Pages.

    Note that the closest to Latex rendering without exporting as images and natively supporting it on your Jekyll site would be to use MathJax.

    MathJax is actually recommended in Jekyllrb docs for math support, with Kramdown, it also converts it from LaTeX to PNG, more details on it here at the Kramdown documentation

    Option 1: Write your equation in MathURL and embed it.

    You could write the equation with MathURL, then generate a url that permanently points to the equation, and display this in an