Please excuse me if this is a naive question. I would like to parse markdown inside a Svelte component, something like
<script>
--- import some markdownLibrary ---
export let text; // text is a markdown param
</script>
markdownLibrary.render({text})
I can't use markdown-it or marked as require
isn't available.
I feel like I'm missing the bigger picture here. What is the 'svelte' way of doing this? Any pointer would help.