feat: Add target="_blank" to Markdown links in NodeDescription and ChatMessage components (#4060)

* feat: Add target="_blank" to Markdown links in NodeDescription and ChatMessage components

* added gfm back
This commit is contained in:
anovazzi1 2024-10-08 13:58:23 -03:00 committed by GitHub
commit 94a647f60d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -146,6 +146,7 @@ export default function NodeDescription({
emptyPlaceholder
) : (
<Markdown
linkTarget="_blank"
className={cn(
"markdown prose flex h-full w-full flex-col text-primary word-break-break-word note-node-markdown dark:prose-invert",
mdClassName,

View file

@ -208,6 +208,7 @@ export default function ChatMessage({
) : (
<Markdown
remarkPlugins={[remarkGfm]}
linkTarget="_blank"
rehypePlugins={[rehypeMathjax]}
className={cn(
"markdown prose flex flex-col word-break-break-word dark:prose-invert",