mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
Update
This commit is contained in:
parent
42ed07317b
commit
6e625a0475
9 changed files with 17 additions and 17 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue