From 92ce9cd61c8a52c97533693a996a516f0a8dea14 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 14 Apr 2026 08:25:46 -0500 Subject: [PATCH] Convert advisory html images before editor mount --- ui/src/components/MarkdownEditor.test.tsx | 2 -- ui/src/components/MarkdownEditor.tsx | 3 --- 2 files changed, 5 deletions(-) diff --git a/ui/src/components/MarkdownEditor.test.tsx b/ui/src/components/MarkdownEditor.test.tsx index d55b280190f..1e4c5cf86f6 100644 --- a/ui/src/components/MarkdownEditor.test.tsx +++ b/ui/src/components/MarkdownEditor.test.tsx @@ -126,8 +126,6 @@ vi.mock("@mdxeditor/editor", async () => { markdownShortcutPlugin: () => ({}), quotePlugin: () => ({}), realmPlugin: (plugin: unknown) => plugin, - jsxPlugin: () => ({}), - GenericJsxEditor: () => null, tablePlugin: () => ({}), thematicBreakPlugin: () => ({}), }; diff --git a/ui/src/components/MarkdownEditor.tsx b/ui/src/components/MarkdownEditor.tsx index e73c81f3226..73b7951f83e 100644 --- a/ui/src/components/MarkdownEditor.tsx +++ b/ui/src/components/MarkdownEditor.tsx @@ -505,7 +505,6 @@ export const MarkdownEditor = forwardRef const [isDragOver, setIsDragOver] = useState(false); const [richEditorError, setRichEditorError] = useState(null); const dragDepthRef = useRef(0); - const suppressHtmlProcessing = / onPasteCapture={handlePasteCapture} > { const echo = echoIgnoreMarkdownRef.current; if (echo !== null && next === echo) {