arrelgado tema de pagina de htags
This commit is contained in:
1 parent
e58985b1e2
commit
08e84a1e27
4 files changed
+108
-1
No files matched your search
@@ -47,7 +47,7 @@
|
||||
let contenido = $derived(() => {
|
||||
let t = post.content.replaceAll('\n', '<br>');
|
||||
t = t.replace(
|
||||
/#\w*/gm,
|
||||
/#\p{L}*/u,
|
||||
(match) =>
|
||||
`<a class="hover:text-blue-200 text-blue-400" href="/htag/${match.replace('#', '')}">${match}</a>`
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user