Please develop, or document, if already developed, a way to inject user-defined macros from LocalSettings.php, e.g., \tg = \operatorname{tg} when either client-side MathJax or server-side Mathoid is used.
Both site-wide and formula or wiki-page specific macros will be useful for tasks like math localisation (as in the example above) or more advanced tasks like wikilinks in formulæ, provided that the necessary package is available (see T288188).
Setting services.conf.mj_config.MathJax.macros for Mathoid in config.yaml does not appear to work.
In pure MathJax this is done via window.MathJax.tex.macros setting.