Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable mathjax in bitbucket wiki?

I put a private repository on Bitbucket.org, and this project needs some documentations that involve a lot of math stuff. I want to use Bitbucket Wiki and edit it in Markdown but how should I also enable MathJax to allow me to type in math equations in the markdown file?

The official documentation of bitbucket (https://confluence.atlassian.com/display/BITBUCKET/Use+a+wiki) does not seem to mention it. And I searched Google but found few useful results. Any idea?

like image 263
Kun Ren Avatar asked Feb 12 '14 03:02

Kun Ren


2 Answers

As of January 2014, Bitbucket only supports MathJax in for restructuredText files.

There is an open feature request for MathJax in markdown files.

like image 126
Peter Krautzberger Avatar answered Oct 20 '22 18:10

Peter Krautzberger


I also searched & searched a few hours and I could not find it. But you need to use the reStructuredText :math: interpreted text role. One example is given below:

:math:`E[(Y - g(X))^{2} | X = x]`

You can also set math as default and leave out :math: in the above markup.

.. default-role:: math
like image 27
appanponn Avatar answered Oct 20 '22 17:10

appanponn