How to Insert Mathematical Formula in Markdown
Markdown is the best tool for me to write blog and articles. However, it does not support formula editing, so I had some trouble when writing something like algorithm proof or math related topic. After some search, I found some solutions:
Method 1. Using Google Chart Server
|
|
An example:
|
|
Result:
Method 2. Using forkosh Server
|
|
For example
|
|
Result:
Method 3. Using MathJax Engine
Do you admire those beautiful formula on Stackoverflow? Try this engine! It is also easy to use on Markdown.
Firstly, add this script in article:
|
|
Then, use LaTex syntex to write formula, $$formula$$
shows block of formula. As for inline formula, unlike \(formula\)
, we need to use \\(formula\\)
since \
is escape character in Markdown. For example:
Block of formula
|
|
In-line formula
|
|