mirror of
https://github.com/fmhy/edit.git
synced 2026-01-11 02:46:16 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user