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]
How to write the equations
To type the equations in the original document, just put them between double dolar signs ($).
That's a simple way to write equations here in Github.