New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding mdsvex to svelte-scoped example #1936
Comments
When I add ".svelte" to the mdsvex extensions list in mdsvex.config.js, the markdown is processed and the styles render, but it's obviously less than ideal since it means all the .svelte files are being processed as markdown.... |
Same issue here, component styles work fine but the MDsveX layout/element styles are not being applied. I don't have a stackblitz repo but I have a normal smallish repo if that works: https://github.com/henrikvilhelmberglund/Tutorials/tree/unocss (unocss branch) |
You can add UnoCSS({
mode: 'svelte-scoped',
include: [/\.svelte$/, /\.svx$/], In my opinion, we should add svx to default list. PRs welcome! Related code: https://github.com/unocss/unocss/blob/b19f5955112988b7a0f4916fc3273d68e69d159c/packages/vite/src/modes/svelte-scoped/index.ts |
…1936 (unocss#2035) * feat: add mdsvex extensions to SvelteScopedPlugin filters * fix: add missing (?) extensions here as well
Running
npx svelte-add@latest mdsvex
in the svelte-scoped example project transforms markdown to html, but Unocss doesn't process the files, regardless of whether they have a .svelte.md, .md, or .svx extension.Is there an additional setting that needs to be added to either vite.config.js, svelte.config.js, or mdsvex.config.js?
The text was updated successfully, but these errors were encountered: