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:
parent
f01ea48d61
commit
94a647f60d
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue