This commit is contained in:
Hugo 2025-05-29 17:02:07 +01:00
parent 92591f803d
commit 457eca872f

View file

@ -294,25 +294,25 @@ const transformLinks = (text: string): string =>
name: 'Telegram', name: 'Telegram',
find: /\[Telegram\]\(([^\)]*?)\)/gm, find: /\[Telegram\]\(([^\)]*?)\)/gm,
replace: replace:
'<a target="_blank" href="$1"><div alt="Telegram" class="i-mdi:telegram" /></a>' '<a target="_blank" href="$1"><div alt="Telegram" class="i-mdi:telegram" /></a>'
}, },
{ {
name: 'Subreddit', name: 'Subreddit',
find: /\[Subreddit\]\(([^\)]*?)\)/gm, find: /\[Subreddit\]\(([^\)]*?)\)/gm,
replace: replace:
'<a target="_blank" href="$1"><div alt="Reddit" class="i-mdi:reddit" /></a>' '<a target="_blank" href="$1"><div alt="Reddit" class="i-mdi:reddit" /></a>'
}, },
{ {
name: 'X', name: 'X',
find: /\[X\]\(([^\)]*?)\)/gm, find: /\[X\]\(([^\)]*?)\)/gm,
replace: replace:
'<a target="_blank" href="$1"><div alt="X" class="i-carbon:logo-x" /></a>' '<a target="_blank" href="$1"><div alt="X" class="i-carbon:logo-x" /></a>'
}, },
{ {
name: 'Tor', name: 'Tor',
find: /\[.onion\]\(([^\)]*?)\)/gm, find: /\[.onion\]\(([^\)]*?)\)/gm,
replace: replace:
'<a target="_blank" href="$1"><div alt=".onion" class="i-simple-icons:torbrowser w-1em h-1em" /></a>' '<a target="_blank" href="$1"><div alt=".onion" class="i-simple-icons:torbrowser w-1em h-1em" /></a>'
}, },
// Platform indicators // Platform indicators
{ {