Context
No response
Bug description
I am using KaTeX for math rendering in Material for MkDocs. Most formulas render correctly (sums, products, fractions, greek letters, ...).
However, vector accents do not appear at all, for example when using \vec{F}.
Additional Verification
Rendering the exact same formula in a standalone HTML page using only KaTeX does show the vectors correctly, so the issue appears to not be browser related.
This suggests that some of Material CSS could be preventing KaTeX from rendering accurately.
Related links
Reproduction
9.6.23-katex-vectorial-arrows-are-not-rendering.zip
Steps to reproduce
-
Install MkDocs and Material for MkDocs.
-
Create a new MkDocs project and configure theme -> name: material in mkdocs.yml.
-
Enable KaTeX following the Material for MkDocs math reference guide.
-
Add a formula using vector accents, for example:
$$
\vec{F}_T = \sum_{i=1}^{N} \vec{F}_i = m \vec{a}
$$
-
Run mkdocs serve or mkdocs build.
-
Observe that the vector arrows do not appear in the rendered output.
Browser
Firefox
Before submitting
Context
No response
Bug description
I am using KaTeX for math rendering in Material for MkDocs. Most formulas render correctly (sums, products, fractions, greek letters, ...).
However, vector accents do not appear at all, for example when using
\vec{F}.Additional Verification
Rendering the exact same formula in a standalone HTML page using only KaTeX does show the vectors correctly, so the issue appears to not be browser related.
This suggests that some of Material CSS could be preventing KaTeX from rendering accurately.
Related links
Reproduction
9.6.23-katex-vectorial-arrows-are-not-rendering.zip
Steps to reproduce
Install MkDocs and Material for MkDocs.
Create a new MkDocs project and configure
theme -> name: materialinmkdocs.yml.Enable KaTeX following the Material for MkDocs math reference guide.
Add a formula using vector accents, for example:
Run
mkdocs serveormkdocs build.Observe that the vector arrows do not appear in the rendered output.
Browser
Firefox
Before submitting