https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX
You just need to standardise it. There's no need to include all of LaTeX in a standard that is just for rendering equations.