mirror of
https://github.com/fmhy/edit.git
synced 2025-08-04 02:02:13 +10:00
Update
- Added Source Code icon. - Some misc changes.
This commit is contained in:
parent
ecd25eed42
commit
0cfe95c69d
9 changed files with 28 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue