Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

copy_and_paste: Remove redundant math rule.

apoorvapendse395a0240f87d
diff --git a/web/src/copy_and_paste.ts b/web/src/copy_and_paste.ts
index 66efe8e5fd6..d4c2bc5b332 100644
--- a/web/src/copy_and_paste.ts
+++ b/web/src/copy_and_paste.ts
@@ -751,17 +751,6 @@ export function paste_handler_converter(
replacement: image_to_zulip_markdown,
});
- turndownService.addRule("math", {
- // We don't have a way to get the original LaTeX code from the rendered
- // `math` so we drop it to avoid pasting gibberish.
- // In the future, we could have a data-original-latex feature in Zulip HTML
- // if we wanted to paste the original LaTeX for Zulip messages.
- filter: "math",
-
- replacement() {
- return "";
- },
- });
// We override the original upstream implementation of this rule to make
// several tweaks: