SteemIt Markdown Editor does not support Latex easily. But one alternative (workaround) is to use the Google Tex Image URL. In particular I like Markdown and Latex because it is what-you-think is what-you-get.
I am a math fan, in my last post, I realized that inserting equations in SteemIt Markdown or HTML editor is a pain. The fact is that the Latex is not supported in the SteemIt Markdown editor.
In Latex, we use $$ or $ to begin a math equation, but it doesn’t work in SteemIt editor, obviously.
$$ \sum_{i=1}^{100} f(i^2) $$
We can use the Google API to show the image by inputing a math equation in the URL: The documentation can be found here.
We need to replace the following MATH-Equation with your intended math equation.
![](https://chart.googleapis.com/chart?cht=tx&chl=MATH-Equation)
For example,
![](https://chart.googleapis.com/chart?cht=tx&chl=c=\sqrt{x^2%2By^2})
It shows:
What the hell is the %2B in the URL? You will need to percentage-encode the URL parameters as some symbols represent special meanings in URL.
Here, I recommend this online tool (written by me) to encode the equation/text.
For example:
$$ \sum_{i=1}^{100} f(i^2) $$
after URL-encoded, becomes:
%24%24%20%5Csum_%7Bi%3D1%7D%5E%7B100%7D%20f(i%5E2)%20%24%24
and the final image URL to insert is:
https://chart.googleapis.com/chart?cht=tx&chl=%24%24%20%5Csum_%7Bi%3D1%7D%5E%7B100%7D%20f(i%5E2)%20%24%24
This is how it looks:
I do hope that the SteemIt team supports Latex in the Markdown one day!
You may also like: 如何在 SteemIt MarkDown 编辑器里添加数学公式?
–EOF (The Ultimate Computing & Technology Blog) —
loading...
Last Post: The Best SteemIt UpVoting Strategy Calculator in Javascript
Next Post: [Code Review] - Reinventing the Wheel
Great stopgap resource while we figure out how to get proper equation support in Steemit. Thanks! Is there any way to center the equation?