How to show math equations or formula in markdown file

2018-01-24 06:30:03

I like to write notes in markdown file. Most of the times my notes are about coding, but sometimes I need to write some math equations or symbols. I would like to see the equations directly in the vim, so I add the following lines in my vimrc:

set conceallevel=2

set concealcursor=

However, when I write the following content in my .md file, it did not converted into math equations:

$\sqrt{X^2} + \sum{X}$

How could I write markdown notes in vim as I did in typora, with real time format conversion and math symbols support?