How to show math equations in general github's markdown(not github's blog)

后端 未结 10 1501
Happy的楠姐
Happy的楠姐 2020-11-29 14:36

After investigating, I\'ve found mathjax can do this. But when I write some example in my markdown file, it doesn\'t show the correct equations:

I have added this in

10条回答
  •  自闭症患者
    2020-11-29 15:20

    One other work-around is to use jupyter notebooks and use the markdown mode in cells to render equations.

    Basic stuff seems to work perfectly, like centered equations

    \begin{equation}
    ...
    \end{equation}
    

    or inline equations

    $ \sum_{\forall i}{x_i^{2}} $
    

    Although, one of the functions that I really wanted did not render at all in github was \mbox{}, which was a bummer. But, all in all this has been the most successful way of rendering equations on github.

提交回复
热议问题