I try to make equation in markdown file on the gitlab.
I f try to follow this guidelines.
Why this equation
$\Phi_M(c) \overset{def}{=} \Phi_c(c)$
is not rendered ? ( I mean: \overset{def}{=} )
TIA
Adam
I ran
katex.renderToString('\\Phi_M(c) \\overset{def}{=} \\Phi_c(c)')
on the javascript console both on your site and on https://khan.github.io/KaTeX/. It failed on the former as you indicated and it succeeded on the latter.
Are you by any chance running an old version of KaTeX? Per https://github.com/Khan/KaTeX/releases, \overset was added in v0.8.0.
thx.
I have found that "Gitlab ships with KaTeX starting from v8.15 ".
Maye it is a gitlab not KaTex problem so I have also asked on the gitlab
Agreed. gitlab seems to include this version of katex which clearly doesn't include \overset, while the latest versions do. Hopefully they can upgrade as indicated in the comments there.
Is KaTex using version number ? I have found only 4fb9445a9 or 2015. How do you check it?
KaTeX uses version numbers, but it doesn't seem to have made its way into Gitlab's code (unfortunately). But from the year, it's clearly an old version.