Added subreddit icons

This commit is contained in:
Hugo 2024-08-06 18:57:50 +00:00
parent 0df53200fa
commit 2b5a7347ef
2 changed files with 5 additions and 1 deletions

View file

@ -382,5 +382,9 @@ function transformLinks(text: string): string {
/\[Telegram\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="Telegram" class="i-mdi:telegram" /></a>'
)
.replace(
/\[Subreddit\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="Telegram" class="i-mdi:reddit" /></a>'
)
return _text
}