Member-only story

How to use math formula on Medium posting

Wonhee Jung
2 min readFeb 28, 2020

--

I ran a few try to find out a way to use nice math formula rendered and post it on Medium. There are a few ways you can do outside of Medium, but not much here. The Medium doesn’t allow any javascript insertion, which means there is no way to use MathJax in order to render your math formula.

Well, it’s not the best result but if you are okay with Jupyter notebook rendered quality and a bit of extra step, you can somehow use LaTeX rendered formula in your posting.

First, render math formula with LaTeX on your Jupyter notebook. Ensure set the cell type as “markdown”, not “code”, unless that’s what you actually want.

Copied formula from LaTex examples, so page itself doesn’t make sense. Ignore it!!!

Second, go to the gist.github.com and upload your Jupyter notebook(ipynb) file. If you don’t have github.com account yet, make it first.

Third, copy the gist share link. Do not copy embedded type that includes “<javascript>” tag. Switch the link type to “Share” and copy the URL.

Finally, move to the Medium and create a new posting. Simply paste the URL you copied from gist. Ta-da!

--

--

Wonhee Jung
Wonhee Jung

Written by Wonhee Jung

Lifelong gamer and learner, loves lifehack. Senior Software Engineer@Blizzard Entertainment. Master’s degree in CS@UIUC, current CS grad student@GeorgiaTech.

No responses yet