This commit is contained in:
Hugo 2024-08-06 09:44:19 +00:00
parent 42ed07317b
commit 6e625a0475
9 changed files with 17 additions and 17 deletions

View file

@ -373,10 +373,10 @@ function transformLinks(text: string): string {
/\[GitHub\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github mb-1" /></a>'
)
// Fallback for GitHub
// Transform GitLab links to icons
.replace(
/\[Github\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github mb-1" /></a>'
/\[GitLab\]\(([^\)]*?)\)/gm,
'<a target="_blank" href="$1"><div alt="GitLab" class="i-carbon:logo-gitlab" /></a>'
)
// Transform Telegram links to icons
.replace(