desktop_notification: Fix bad rendering of math formulas.

Earlier, for the desktop notifications having latex math
like "$$1 \oplus 0 = 1$$, the notification had the math
included multiple times.

This commit fixes the incorrect behavior by replacing
the KaTeX with the raw LaTeX source.

Fixes #25289.
This commit is contained in:
Prakhar Pratyush
2023-11-27 12:05:08 +05:30
committed by Tim Abbott
parent 6f3b25d749
commit 9c5cfe83ba
3 changed files with 16 additions and 0 deletions

View File

@@ -340,6 +340,7 @@ test("message_is_notifiable", () => {
test("basic_notifications", () => {
$("<div>").set_find_results(".emoji", {replaceWith() {}});
$("<div>").set_find_results("span.katex", {each() {}});
let n; // Object for storing all notification data for assertions.
let last_closed_message_id = null;