We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b87dc5 commit bd2eb06Copy full SHA for bd2eb06
webview-ui/src/components/common/MarkdownBlock.tsx
@@ -42,11 +42,19 @@ const remarkUrlToLink = () => {
42
}
43
44
if (cleanedMatches[i]) {
45
+ const originalUrl = matches[i]
46
+ const cleanedUrl = cleanedMatches[i]
47
+ const removedPunctuation = originalUrl.substring(cleanedUrl.length)
48
+
49
children.push({
50
type: "link",
- url: cleanedMatches[i],
- children: [{ type: "text", value: matches[i] }],
51
+ url: cleanedUrl,
52
+ children: [{ type: "text", value: cleanedUrl }],
53
})
54
55
+ if (removedPunctuation) {
56
+ children.push({ type: "text", value: removedPunctuation })
57
+ }
58
59
60
0 commit comments