This is a Python script that looks for a README written with Markdown + and outputs a README.md with the equations replaced by images rendered by CodeCogs.
You can use it with other Markdown files, just pass the path to them as an argument to the script:
python insert_equations.py [MARKDOWN_FILE_PATH]
To type the equations in the original document, just put them between double dolar signs ($).
As an example, this is a README.md generated by the README in this repo using that script, so we can type things like this:
Now compare the README and the raw version of this README.md.
That's a simple way to write equations here in Github.