Closed marcfilleul closed 1 year ago
Nevermind, I post my solution here in case it helps.
I created my own wrapper component called Markdown.svelte
:
<script>
import SvelteMarkdown from "svelte-markdown";
let options = {
breaks: true
};
export let source;
</script>
<SvelteMarkdown {source} {options} />
So I just have to import and use Markdown.svelte with the source prop only :)
Hi, I'd like to always render line breaks whenever I use a SvelteMarkdown component.
I just discovered some days ago that I could use:
then:
But for now I have to add that anytime I want to use it, which isn't ideal.
Is there a way to use this option by default?
Thanks