summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/features/linkify-code.tsx1
-rw-r--r--source/github-helpers/dom-formatters.tsx4
2 files changed, 5 insertions, 0 deletions
diff --git a/source/features/linkify-code.tsx b/source/features/linkify-code.tsx
index 4aa52414..cd16a6be 100644
--- a/source/features/linkify-code.tsx
+++ b/source/features/linkify-code.tsx
@@ -63,5 +63,6 @@ void features.add(import.meta.url, {
## Test URLs
- Discussions: https://github.com/File-New-Project/EarTrumpet/discussions/877
+- Code Search: https://github.com/search?q=repo%3AKatsuteDev%2FBackground+marketplace&type=code
*/
diff --git a/source/github-helpers/dom-formatters.tsx b/source/github-helpers/dom-formatters.tsx
index 819c6a7e..10ec8062 100644
--- a/source/github-helpers/dom-formatters.tsx
+++ b/source/github-helpers/dom-formatters.tsx
@@ -80,6 +80,10 @@ export function linkifyURLs(element: Element): Element[] | void {
},
});
+ if (linkified.lastChild?.textContent === '…') { // Link is followed by …
+ return;
+ }
+
if (linkified.children.length === 0) { // Children are <a>
return;
}