As IntelliJ team has neither plans on integration of LaTeX support into YouTrack, nor gives any evidence of steps to towards it, I've made my own "crutch".
It intercepts invocations of getMarkupPreview used in live preview, and signals MathJax/KaTex
to rerender formulas. Static wiki markup rendering bypasses getMarkupPreview, and I haven't figured out
yet a better solution than plain setInterval.
Suggestions are welcome!
(assuming the YouTrack 2019+ is installed)
- Open
~/.youtrack/app/apps/youtrack/web/static/index.htmlwith your favourite editor; - Put the contents of [katex.html] (preferred) or [mathjax.html] into to it right before the closing
<body/>tag. - Restart YouTrack
Updating YouTrack erases these modifications, so the index.html is needed to be patched again after update.
Automated patch-based installation won't work probably, as surrounding lines have random numbers as script names that change from build to build.
- 2020-07-05: Added basic KaTex support using autorender
- Initial version: MathJax support