From 38e92040c42396f4fe99fa5db2cfb1fe28538f58 Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Tue, 31 Mar 2026 14:44:00 +0800 Subject: [PATCH] fix(editor): migrate tiptap-markdown import to @tiptap/markdown Update import path and remove deprecated config options (html, transformPastedText, transformCopiedText) that don't exist in the official @tiptap/markdown package. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/components/common/rich-text-editor.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/web/components/common/rich-text-editor.tsx b/apps/web/components/common/rich-text-editor.tsx index 188030de..447c4278 100644 --- a/apps/web/components/common/rich-text-editor.tsx +++ b/apps/web/components/common/rich-text-editor.tsx @@ -12,7 +12,7 @@ import Placeholder from "@tiptap/extension-placeholder"; import Link from "@tiptap/extension-link"; import Typography from "@tiptap/extension-typography"; import Mention from "@tiptap/extension-mention"; -import { Markdown } from "tiptap-markdown"; +import { Markdown } from "@tiptap/markdown"; import { Extension } from "@tiptap/core"; import { cn } from "@/lib/utils"; import { createMentionSuggestion } from "./mention-suggestion"; @@ -184,11 +184,7 @@ const RichTextEditor = forwardRef( LinkExtension, Typography, MentionExtension, - Markdown.configure({ - html: false, - transformPastedText: true, - transformCopiedText: true, - }), + Markdown, createSubmitExtension(() => onSubmitRef.current?.()), ], onUpdate: ({ editor: ed }) => {