mirror of
https://github.com/thegeneralist01/archivr
synced 2026-07-22 03:05:32 +02:00
renderTweetTextJSX now accepts skipSpans=[] as third param. Skip-span boundaries are added to the pts split set so a trailing media t.co inside a plain segment still gets isolated and suppressed— not re-linked by linkifyText. Early return only when both anns and skipSpans are empty. TweetCard computes mediaSkipSpans after building photos/videoItems: for each rawMedia item whose src resolved (photo src match; any video), resolveEntityBounds(m, ft, m.url) gives the precise [s,e] span using indices/fromIndex first, indexOf fallback—then the span is passed to renderTweetTextJSX so the t.co attachment URL is silently dropped.
13 lines
390 B
HTML
13 lines
390 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Archivr</title>
|
|
<script type="module" crossorigin src="/assets/index-Gm5awz10.js"></script>
|
|
<link rel="stylesheet" crossorigin href="/assets/index-C89vW3ol.css">
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
</html>
|