mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Since we need KaTeX to be available for zerver/lib/tex.py and static/third/katex/cli.js to be able to shell out to it. However, for some reason, the KaTeX we bundle using Webpack doesn't seem to be importable by Node (and it's also kinda a pain to find its filename from `cli.js`). So, we work around this by just using the legacy system for KaTeX. Something similar is needed for zxcvbn.js, in order to support the settings_account.js use case (basically deferred loading of this file); that requires JS code to have access to the correct path for zxcvbn.