From 917253990b35df32e6088a9dc3017a19a5861060 Mon Sep 17 00:00:00 2001 From: dmitriylaukhin Date: Fri, 31 Jul 2026 19:48:31 +0500 Subject: [PATCH] Drop react-markdown node prop from rendered comment links The custom `a` renderer spread react-markdown's internal `node` prop onto the anchor, leaking node="[object Object]" into the DOM on every comment link. Destructure it out. --- src/components/student/lesson-comments.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/student/lesson-comments.tsx b/src/components/student/lesson-comments.tsx index 0930e41..0554282 100644 --- a/src/components/student/lesson-comments.tsx +++ b/src/components/student/lesson-comments.tsx @@ -51,7 +51,8 @@ function CommentBody({ text }: { text: string }) { , + // eslint-disable-next-line @typescript-eslint/no-unused-vars -- отбрасываем служебный node от react-markdown, чтобы он не протекал в DOM + a: ({ node, ...props }) => , }} > {text}