Katex fonts not correctly included
Summary
When rendering matrices on Gitlab's wiki, the matrices are not rendered correctly. This is due to the katex stylesheet (katex.min.css) not being loaded.
Steps to reproduce
Create some math on a wiki page (or here apparently!) like so:
\begin{bmatrix} y' \\ u' \end{bmatrix} =
\begin{bmatrix} A_{sys} & B_{sys} \\ C_{sys} & D_{sys} \end{bmatrix}
\begin{bmatrix} y \\ u \end{bmatrix}
This should display like so:
However it actually renders like this:
For a quck check, I am rendering the same thing below using embedded katex, and you can see this bug report has the same issue:
\begin{bmatrix} y' \\ u' \end{bmatrix} =
\begin{bmatrix} A_{sys} & B_{sys} \\ C_{sys} & D_{sys} \end{bmatrix}
\begin{bmatrix} y \\ u \end{bmatrix}
What is the current bug behavior?
What is the expected correct behavior?
Possible fixes
After some looking around, I was able to verify that the katex style sheet:
https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css
is not being included on the pages.
I can forcibly inject this style sheet into a page (using google chrome developer console):
$(document.head).append('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css">');
Once I do this, the rendering is then correct. This should be a simple fix, hopefully!
Git Lab Version
Currently we are running version V12.9.1-ee (0ebcf602)