The Markdown flavors available in WM, as you might know, don't support Mathjax style math equations. I was kinda disappointed by it because I just loved the Zen like distraction free environment and the awesome Pomodoro plugin of WM. I just couldn't leave WM just because of a single feature not being available! So I set out to find a workaround and I did!
It is actually pretty simple, but since I am not from a computer science background it took me sometime to figure it out. Anyways, here is what you do:-
1. Install
Pandoc. Pandoc is like
"Mystique" - can change from any format and to any format you want(.pdf, .opml, .html, .latex ...). I really mean it - ANY format.
2. Learn Pandoc markdown syntax. You can either read the documentation
here or have a look at this
cheatsheet. (It is very simple. In fact that seems to be the whole point of markdown - to be simple!)
3. Then have a look at this
SE thread which is pretty much a cheatsheet for how to write equations in MathJax.
4. Now just write in Pandoc markdown in WM and save as .md as usual.
5. Now use Pandoc, by following the instructions
here, to convert to whatever format you want! All your equations will show up beautifully! You can even change to .latex if you so desire!
6. Now it might be irritating to convert your source every time to check if everything is formatted properly. For this you can use
Markmon previewer(click the link for install instructions).
7. After installing Markmon just go to your command line, change your directory to wherever you stored your .md file and type in :-
markmon "filename.md" --command "pandoc --mathjax -N -t HTML5" --port 3000
8. Now just open your internet browser and in your address bar type in:- localhost:3000
9. Your document will be live previewed!
That is it! From now on you can just type in Pandoc markdown in WM, preview it in Markmon(from your browser) and change your .md to whatever format you want to with Pandoc. If you want to automate things a bit, maybe write a script for the markmon command!
Hope it helps you!