yuanchuan / sveltekit-autoimport

Automatically detect and import components/modules for SvelteKit projects
https://npm.im/sveltekit-autoimport
MIT License
228 stars 11 forks source link

What's the best way to use this when parsing a string of source text? #41

Open zivbk1 opened 2 months ago

zivbk1 commented 2 months ago

This works well when I put the files in the routes directory. But I have my asciidoc format 'content' files in /src/content and use a $lib js file to load the source content and then process it into HTML.

What would be the best way to auto-import the Components like <Logo /> found within the asciidoc source string, before returning it as HTML for placement into the layout component?