If you're wondering where to start your Overleaf and LaTeX journey, you can commence by looking at these resources: $$ is TeX primitive syntax, which, as Other folks have commented is hard to redefine (in traditional TeX there is no command title which triggers entering or leaving Display screen math). https://gdblogaccount1.wixsite.com/flylatex