Skip to content

Commit 7c11248

Browse files
committed
fix(web): keep external link labels breakable under PR autolinks
#8812 routes link content through a linkChildren element that already wraps children in MarkdownLinkContext. Passing that inside MarkdownExternalLinkContent puts an element where it looks for the leading text it splits with <wbr/>, so a long label became one unbreakable run and overflowed the chat column. Pylon wraps the result instead of the children for exactly this reason. Caught by ChatMarkdown.test.tsx.
1 parent 05f134d commit 7c11248

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/components/ChatMarkdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2338,7 +2338,7 @@ function ChatMarkdown({
23382338
// makes the whole label one unbreakable run.
23392339
<MarkdownLinkContext value>
23402340
<MarkdownExternalLinkContent host={faviconHost} plainText={plainHastText(node)}>
2341-
{linkChildren}
2341+
{children}
23422342
</MarkdownExternalLinkContent>
23432343
</MarkdownLinkContext>
23442344
) : (

0 commit comments

Comments
 (0)