ssssota / svelte-exmarkdown

Svelte component to render markdown.
https://ssssota.github.io/svelte-exmarkdown
MIT License
177 stars 6 forks source link

Any idea why this is happening? #53

Closed vlrevolution closed 1 year ago

vlrevolution commented 1 year ago

Working good, using two plugins, one for code blocks and one for tables and I'm seeing a lot of warnings in console: image

Any idea how this could happen?

ssssota commented 1 year ago

Please check #23 and #25 .

vlrevolution commented 1 year ago

What is the solution? I don't really understand what I should do. I am not using SvelteKit btw

ssssota commented 1 year ago

Oops, I'm sorry.

17 & #18 are related issues.

You should write variables as props:

MdTable.svelte

<script>
export let type = undefined;
export let tagname = undefined;
export let position = undefined;
export let __index = undefined;
// HACK: ignore `unused-export-let`
tagName && type && position && __index;

// And your code ...
</script>