Add Source Code Icon + Misc Changes (#3498)

* test

* Update
- Added Source Code icon.
- Some misc changes.

* Fix

* Adjust title

* Fix redirect

* Move PDF Utilities
This commit is contained in:
Hugo 2025-05-27 07:19:37 +01:00 committed by GitHub
parent 289c0a30df
commit a083dd1ea8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 43 additions and 28 deletions

View file

@ -284,6 +284,12 @@ const transformLinks = (text: string): string =>
replace:
'<a target="_blank" href="$1"><div alt="GitLab" class="i-carbon:logo-gitlab" /></a>'
},
{
name: 'Source Code',
find: /\[Source Code\]\(([^\)]*?)\)/gm,
replace:
'<a target="_blank" href="$1"><div alt="Source Code" class="i-gravity-ui:code" /></a>'
},
{
name: 'Telegram',
find: /\[Telegram\]\(([^\)]*?)\)/gm,