Skip to content

Instantly share code, notes, and snippets.

View Astroneko404's full-sized avatar
🎊
Wooo!

Astron Lagrange Astroneko404

🎊
Wooo!
View GitHub Profile
@Astroneko404
Astroneko404 / publish-ghpages.md
Created June 11, 2021 10:51 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref

Problem

A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:

$e^{i \pi} = -1$

Unfortunately, GitHub does not support inline formulas. The issue is tracked here.

Investigation