Just install this https://github.com/apps/texify save your file with extension *.tex.md and that's it!!
For example take the following code block and place it in between $.
y_i& \approx \beta_0 + \beta_1 x_{i1} + .. + \beta_N x_{iN}
it will become this next time you git push:
NOTE: I noticed that the next time you git push you will be prompted to git pull to save locally those images that were created by the app in the folder tex.
TIP: If something goes wrong delete the tex folder locally and then git push -f
to force the push and evade the git pull. Then go back to git pull / git push convention.
||\mathbf{x}||_2 = \sqrt{x_1^2 + x_2^2 +...+ x_n^2}
||\mathbf{x}||_2^2 = \displaystyle\sum_{i=1}^n x_i^2 =\mathbf{x}^T \cdot \mathbf{x}
The sum of squares of \mathbf{x}
is denoted by ||\mathbf{x}||_2^2