I just started using GitLab, and to avoid having the math and the code in different places, I would like to use the GitLab wiki to "store" the math. Writing the equation would be simpler if I had katex macros or definitions available. However, they appear to not be working.
I've tried all the examples in the Katex docs [https://katex.org/docs/supported.html#macros], making changes where necessary, but they do not work (i.e. do not render properly).
Example 1 (from the katex docs):
```math
\def\foo{x^2} \foo + \foo
```
is rendered as :
\def\foox2\foo+\foo
and not as x^2+x^2. My institution has version 11.3.3 installed.