| ... | ... | @@ -2943,6 +2943,7 @@ const CHAT_MARKDOWN_COMPONENTS = { |
| 2943 | 2943 | : null; |
| 2944 | 2944 | if (!fileLinkMeta) { |
| 2945 | 2945 | const faviconHost = resolveExternalWebLinkHost(href); |
| 2946 | const hasText = hastHasText(node); |
| 2946 | 2947 | const pullRequestAutolink = String( |
| 2947 | 2948 | (props as Record<string, unknown>)["data-pull-request-autolink"] ?? "", |
| 2948 | 2949 | ); |
| ... | ... | @@ -2974,6 +2975,7 @@ const CHAT_MARKDOWN_COMPONENTS = { |
| 2974 | 2975 | {...props} |
| 2975 | 2976 | className={cn(props.className, pullRequestAutolink === "commit" && "font-mono")} |
| 2976 | 2977 | data-markdown-copy={pullRequestCopy} |
| 2978 | data-markdown-image-link={!hasText || undefined} |
| 2977 | 2979 | href={href} |
| 2978 | 2980 | target={isSameDocumentLink ? undefined : "_blank"} |
| 2979 | 2981 | rel={isSameDocumentLink ? undefined : "noopener noreferrer"} |
| ... | ... | @@ -3093,7 +3095,7 @@ const CHAT_MARKDOWN_COMPONENTS = { |
| 3093 | 3095 | }); |
| 3094 | 3096 | }} |
| 3095 | 3097 | > |
| 3096 | | {faviconHost && hastHasText(node) && !isPullRequestAutolink ? ( |
| 3098 | {faviconHost && hasText && !isPullRequestAutolink ? ( |
| 3097 | 3099 | <MarkdownExternalLinkContent host={faviconHost} plainText={plainHastText(node)}> |
| 3098 | 3100 | {linkChildren} |
| 3099 | 3101 | </MarkdownExternalLinkContent> |