careteditor / issues

Caret issues
https://caret.io
327 stars 12 forks source link

Math expression not rendered #895

Open gasilva opened 4 years ago

gasilva commented 4 years ago

I can see the equations in the preview, save the file, but when visualized in github it simply does not work and the expressions are not rendered.

$$$ s(t)+e(t)+i(t)+r(t) \geq 1 $$$

I am trying to put equation here in my README.md

https://github.com/gasilva/dataAndModelsCovid19

https://github.com/gasilva/dataAndModelsCovid19/blob/master/README.md

Just above the picture, you can see an figure of equation and the equation that is supposed to be rendered.

image

However, I need to enter a much more complex equation, like that:

$$$ \left{\begin{array}{l}\frac{d s}{d t}=-\beta i(t) s(t) \ \frac{d e}{d t}=\beta s(t) i(t)-\sigma e(t) \ \frac{d a}{d t}=\sigma e(t) \cdot (1-p)+\gamma a \ \frac{d i}{d t}=\sigma e(t) \cdot p - (\gamma + \sigma_2) \cdot i(t) \ \frac{d r}{d t}=(1 + \frac{1}{\gamma}\sigma_2) \cdot a i(t) \ \frac{d k}{d t}=(1 + \frac{1}{\gamma}\sigma_2) \cdot b i(t) \end{array}\right} $$$

In the preview works, in github it does not show up.

astoilkov commented 4 years ago

Hi,

GitHub doesn't support LaTeX/Math syntax. You can see this in their official spec. You can make it work by making a screenshot of the math expression and then put that image inside the README file.