From c91272f820560c3776e69d4a9194da529af57045 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 29 May 2026 21:53:31 -0400 Subject: [PATCH] fix: Always use HTML output from Claude closes #12520 --- app/editor/extensions/PasteHandler.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/editor/extensions/PasteHandler.tsx b/app/editor/extensions/PasteHandler.tsx index 1adf6da4df..ce6ea658ce 100644 --- a/app/editor/extensions/PasteHandler.tsx +++ b/app/editor/extensions/PasteHandler.tsx @@ -108,6 +108,12 @@ export default class PasteHandler extends Extension { return false; } + // If the HTML on the clipboard is from Claude then the best + // compatability is to just use the HTML parser. + if (html?.includes("font-claude-response-body")) { + return false; + } + // Check if the clipboard contents can be parsed as a single url. // Trim first so surrounding whitespace from the clipboard (e.g. a // trailing newline appended by the source) doesn't prevent URL