mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This is better than using `.katex` as sometimes the selection range starts from the `.katex-mathml` node. Since `.katex-mathml` is always the immediate child of `.katex`, this filtering/replacement change will make copy pasting inline expressions better. Fixes: https://chat.zulip.org/#narrow/channel/9-issues/topic/.F0.9F.93.82.20pasting.20LaTeX/near/2104904