linkTarget={'_blank'},这个对于对话框中的链接,会在新的tab页打开,体验更好。

This commit is contained in:
kakawanyifan 2023-04-04 16:33:36 +08:00
parent 1d2a95361b
commit 0508b0080f
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ export function Markdown(props: { content: string }) {
components={{
pre: PreCode,
}}
linkTarget={'_blank'}
>
{props.content}
</ReactMarkdown>