Skip to content

Commit f79dbf8

Browse files
authored
fix: 修复Markdown渲染加粗链接时显示[object Object]的问题 (#5839)
1 parent e1b616a commit f79dbf8

File tree

1 file changed

+1
-1
lines changed
  • projects/app/src/components/Markdown

1 file changed

+1
-1
lines changed

projects/app/src/components/Markdown/A.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const A = ({
202202
);
203203
}
204204

205-
return <Link {...props}>{content || props?.href}</Link>;
205+
return <Link {...props}>{children || props?.href}</Link>;
206206
};
207207

208208
export default React.memo(A);

0 commit comments

Comments
 (0)