#using svelte with marked for markdown

1 messages · Page 1 of 1 (latest)

jaunty patrol
#

this is my first time using astrojs for the real project. and I am using svelte for all the reactive part island.

everything works fine but I need to add marked npm package into svelte island.

from this link:
https://svelte.dev/repl/98a473d8e5ec46bca9db12b22b591902?version=3.19.2

it seems straight forward that I can just install marked then import into the svelte component to use. but it did not work.

I think I need to add to the svelte plugin or something but cannot find good reference for that.

any help will be great.

delicate kettle