mirror of
https://github.com/fmhy/edit.git
synced 2025-07-30 07:42:18 +10:00
Update multiple documentation pages to replace references to Twitter with X.com, update links, and enhance clarity across various guides.
This commit is contained in:
parent
d63cab4430
commit
6e35c3f80f
19 changed files with 58 additions and 72 deletions
|
@ -278,24 +278,12 @@ const transformLinks = (text: string): string =>
|
|||
replace:
|
||||
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github" /></a>'
|
||||
},
|
||||
{
|
||||
name: 'GitHub Fallback',
|
||||
find: /\[Github\]\(([^\)]*?)\)/gm,
|
||||
replace:
|
||||
'<a target="_blank" href="$1"><div alt="GitHub" class="i-carbon:logo-github" /></a>'
|
||||
},
|
||||
{
|
||||
name: 'GitLab',
|
||||
find: /\[GitLab\]\(([^\)]*?)\)/gm,
|
||||
replace:
|
||||
'<a target="_blank" href="$1"><div alt="GitLab" class="i-carbon:logo-gitlab" /></a>'
|
||||
},
|
||||
{
|
||||
name: 'GitLab Fallback',
|
||||
find: /\[Gitlab\]\(([^\)]*?)\)/gm,
|
||||
replace:
|
||||
'<a target="_blank" href="$1"><div alt="GitLab" class="i-carbon:logo-gitlab" /></a>'
|
||||
},
|
||||
{
|
||||
name: 'Telegram',
|
||||
find: /\[Telegram\]\(([^\)]*?)\)/gm,
|
||||
|
@ -309,10 +297,10 @@ const transformLinks = (text: string): string =>
|
|||
'<a target="_blank" href="$1"><div alt="Reddit" class="i-mdi:reddit" /></a>'
|
||||
},
|
||||
{
|
||||
name: 'Twitter',
|
||||
find: /\[Twitter\]\(([^\)]*?)\)/gm,
|
||||
name: 'X',
|
||||
find: /\[X\]\(([^\)]*?)\)/gm,
|
||||
replace:
|
||||
'<a target="_blank" href="$1"><div alt="Twitter" class="i-mdi:twitter" /></a>'
|
||||
'<a target="_blank" href="$1"><div alt="X" class="i-cabon:logo-x" /></a>'
|
||||
},
|
||||
{
|
||||
name: 'Tor',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue