fix url target

This commit is contained in:
pompurin404 2024-09-26 12:25:49 +08:00
parent 7e8a48bffa
commit 29ad30b1ca
No known key found for this signature in database

View File

@ -54,6 +54,7 @@ const UpdaterModal: React.FC<Props> = (props) => {
<ReactMarkdown <ReactMarkdown
className="markdown-body select-text" className="markdown-body select-text"
components={{ components={{
a: ({ ...props }) => <a target="_blank" className="text-primary" {...props} />,
code: ({ children }) => <Code size="sm">{children}</Code>, code: ({ children }) => <Code size="sm">{children}</Code>,
h3: ({ ...props }) => <h3 className="text-lg font-bold" {...props} />, h3: ({ ...props }) => <h3 className="text-lg font-bold" {...props} />,
li: ({ children }) => <li className="list-disc list-inside">{children}</li> li: ({ children }) => <li className="list-disc list-inside">{children}</li>