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
|
emptyPlaceholder
|
||||||
) : (
|
) : (
|
||||||
<Markdown
|
<Markdown
|
||||||
|
linkTarget="_blank"
|
||||||
className={cn(
|
className={cn(
|
||||||
"markdown prose flex h-full w-full flex-col text-primary word-break-break-word note-node-markdown dark:prose-invert",
|
"markdown prose flex h-full w-full flex-col text-primary word-break-break-word note-node-markdown dark:prose-invert",
|
||||||
mdClassName,
|
mdClassName,
|
||||||
|
|
|
||||||
|
|
@ -208,6 +208,7 @@ export default function ChatMessage({
|
||||||
) : (
|
) : (
|
||||||
<Markdown
|
<Markdown
|
||||||
remarkPlugins={[remarkGfm]}
|
remarkPlugins={[remarkGfm]}
|
||||||
|
linkTarget="_blank"
|
||||||
rehypePlugins={[rehypeMathjax]}
|
rehypePlugins={[rehypeMathjax]}
|
||||||
className={cn(
|
className={cn(
|
||||||
"markdown prose flex flex-col word-break-break-word dark:prose-invert",
|
"markdown prose flex flex-col word-break-break-word dark:prose-invert",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue