Use showdown as a Svelte component.
pnpm i svelte-showdown -D
<script>
import { SvelteShowdown } from 'svelte-showdown';
let content = $state('**This text is bold**, and this one contains emoji: :smile: :alien:');
const options = {
emoji: true
};
</script>
<SvelteShowdown {content} {options} />