update dependencies and minor fixes

This commit is contained in:
Ren Amamiya
2023-05-03 15:11:56 +07:00
parent 555c13c6cf
commit 0721bd52dd
3 changed files with 90 additions and 82 deletions

View File

@@ -33,6 +33,14 @@ export const noteParser = (event: Event) => {
content.videos.push(url);
// remove url from original content
content.parsed = content.parsed.replace(url, '');
} else {
content.parsed = reactStringReplace(content.parsed, url, () => {
return (
<a key={url} href={url} className="text-fuchsia-500 no-underline hover:text-fuchsia-600 hover:underline">
{url}
</a>
);
});
}
});