This commit is contained in:
Hugo 2024-11-23 14:56:36 +00:00 committed by nbats
parent 1f9f333c91
commit b409b14b8a

View file

@ -280,13 +280,13 @@ const transformLinks = (text: string): string =>
name: 'GitHub', name: 'GitHub',
find: /\[GitHub\]\(([^\)]*?)\)/gm, find: /\[GitHub\]\(([^\)]*?)\)/gm,
replace: replace:
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github mb-0.5" /></a>' '<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github" /></a>'
}, },
{ {
name: 'GitHub Fallback', name: 'GitHub Fallback',
find: /\[Github\]\(([^\)]*?)\)/gm, find: /\[Github\]\(([^\)]*?)\)/gm,
replace: replace:
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github mb-0.5" /></a>' '<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github" /></a>'
}, },
{ {
name: 'GitLab', name: 'GitLab',