zerodevx / zero-md

Ridiculously simple zero-config markdown displayer
https://zerodevx.github.io/zero-md/
ISC License
437 stars 48 forks source link

How to use zeroMd as module? #77

Closed Graciasjr closed 1 year ago

Graciasjr commented 1 year ago

Hello zero-dev , i have installed zero-md using cli but it's not easy for me to use it in framework despite Reading Docs😭

I imported { zeroMd}in my page.svelte and i don't know how to use it as components. Help me please

zerodevx commented 1 year ago

Hey, sorry for the late response. zero-md is a web component so generally I'd recommend just loading the script from CDN using a <script> tag. Then you can just use <zero-md> element anywhere in your Svelte app without caring about imports etc.

Graciasjr commented 1 year ago

Thank you for your reply even though it is so late. Yes I got it after many tries. Thank you for your reply.

zerodevx commented 1 year ago

Sorry! I was swarmed... 😫

Will close this for now, feel free to raise another issue if you need help.