Why can't i use marked from "marked"

66 Views Asked by At

For my Svelte project i want to use the function marked from the "marked" libary but i can't use the marked function. How do i fix this?

<script lang="ts">
</script>

<dialog bind:this={dialog} on:close={() => (showModal = false)} on:click|self={() => dialog.close()} >
<div class="label">Voeg de tekst in van je artikel</div>
<textarea bind:value={content} placeholder="Lange beschrijving" rows="20"/>
<div class="preview">{@html marked(content)}</div>
</dialog>
0

There are 0 best solutions below