mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-07 05:01:40 +00:00
[enhancement]: custom css
This commit is contained in:
parent
004c9a8d06
commit
6125901023
10 changed files with 332 additions and 325 deletions
|
|
@ -16,10 +16,11 @@ export const replaceURLWithHTMLLinks = (text: string) => {
|
|||
}
|
||||
|
||||
const link = match[0];
|
||||
const prefix = link.startsWith('http') ? '' : 'https://';
|
||||
elements.push(
|
||||
<a
|
||||
key={lastIndex}
|
||||
href={link}
|
||||
href={prefix + link}
|
||||
rel="noopener noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue