I was able to get something working today in SvelteKit that made me very happy. I can now use Svelte Components within Markdown files for my SvelteKit site, without adding any imports to the top of the Markdown file for all the components in the content, those will now import automatically.
NOTE: This is not the final site, I use a theme project like this for the design system and then package and publish it to NPM for import into other sites.
Any questions, ideas, or suggestions are welcome!
Demo Repo for this video: gitlab.com/bwklein/theme-demo
Tools/Tech used to pull this off:
SvelteKit/Svelte - kit.svelte.dev/
MDsveX - mdsvex.pngwn.io/
Vite-Auto-Importer - github.com/yuanchuan/vite-plu...
Frontmatter Extension - frontmatter.codes/
GitPod.io - www.gitpod.io/
TailwindCSS - tailwindcss.com/
TailwindUI - tailwindui.com/
Katex - katex.org/
Негізгі бет SvelteKit with MDsveX and Auto-Import of Svelte Components
Пікірлер: 4