not-matthias / apollo

Modern and minimalistic blog theme.
https://not-matthias.github.io/apollo
MIT License
122 stars 70 forks source link

Add $ inline math support with mathjax #15

Closed dipeshkaphle closed 1 year ago

dipeshkaphle commented 1 year ago

I wanted to add this because it really bothered me that we have to use \(..\) to do inline math by default in mathjax. GitHub markdown supports $..$ inline math properly, and when we open markdown, they'll have it rendered correctly. This doesn't happen with (\..\) . So any post page that uses inline math, when viewed in github won't have correct rendering by default if we use (\..\) but it will if we use $..$. The $..$ way is also more friendly with pandoc if needed, so I thought adding support for it would be nice.

not-matthias commented 1 year ago

Thanks! :D