Use linkify-it for commit description URLs

Replace the hand-rolled URL regex with `linkify-it` (already a
transitive dep via `marked-linkify-it`). Add unit tests.
This commit is contained in:
Rūdolfs Ošiņš
2026-05-06 09:54:04 +02:00
parent 20be88e5da
commit 3f798744bb
9 changed files with 135 additions and 36 deletions
+2 -4
View File
@@ -31,7 +31,5 @@
}
</style>
<a {href} target="_blank" rel="noreferrer">
<slot>{href}</slot>
<span class="icon"><Icon name="open-external" /></span>
</a>
<!-- prettier-ignore -->
<a {href} target="_blank" rel="noreferrer"><slot>{href}</slot><span class="icon"><Icon name="open-external" /></span></a>