Search code examples
imagegithubmarkdownmathjax

Github markdown - image not rendering


I struggle with rendering an image in a readme file on Github. As soon as I add mathjax after the image, the rendering doesn't work.

<br> We plot the results:  
![My Image](./demo_figure.png)  
<br>Some more text.. $$x+y=2$$

Preview:

enter image description here

If I remove the mathjax, everything works fine. What's going on here?


Solution

  • Solution:

    Im unsure why this works but if you add a line break after your image link it renders.

    <br> We plot the results:  
    ![My Image](./demo_figure.png)  
    
    <br>Some more text.. $$x+y=2$$