first commit

This commit is contained in:
gustavooth
2026-07-26 21:17:57 -03:00
commit 9de08ceef7
133 changed files with 38427 additions and 0 deletions
@@ -0,0 +1,15 @@
<script lang="ts">
import { linkify, linkHref } from '$lib/format';
let { text }: { text: string | undefined | null } = $props();
const value = $derived(text ?? '');
const tokens = $derived(linkify(value));
</script>
{#each tokens as tok, i (i)}
{#if tok.kind === 'url'}
<a href={linkHref(tok.content)} target="_blank" rel="noreferrer">{tok.content}</a>
{:else}
{tok.content}
{/if}
{/each}