Hi, is it possible to use a Snippet for a link and pass through the text + href?
For example like this
{#snippet button( href: string, text: string)}
<Button {href} variant="link" size="link" icon={{ name: 'Arror up right', position: 'right' }} external>
{text}
</Button>
{/snippet}
<SvelteMarkdown source={item.content} renderers={{ link: button( href, text }} />
Hi, is it possible to use a Snippet for a link and pass through the text + href?
For example like this
{#snippet button( href: string, text: string)} <Button {href} variant="link" size="link" icon={{ name: 'Arror up right', position: 'right' }} external> {text} </Button> {/snippet} <SvelteMarkdown source={item.content} renderers={{ link: button( href, text }} />