Eric Liu

Results 252 comments of Eric Liu

Understood – that's a compelling use case.

Currently, the CLI does not pass options to the Svelte rollup plugin: https://github.com/carbon-design-system/sveld/blob/main/src/cli.ts#L22 As a workaround, can you try using Rollup?

> Thank you for quick reply! Yes in rollup it works but how to I activate markdown and JSON there? I have ` sveld({ markdown: true, json: true}),` in rollup...

I haven't used sveld with SvelteKit, but someone has created a plugin called [vite-plugin-sveld](https://github.com/mattjennings/vite-plugin-sveld). Separate question – is there any reason not to use the packaging feature + svelte2tsx supported...

Interesting idea! I'm not well versed in web components but I'm sure the same concept can be applied.

I like this idea. Could you illustrate a use case? One that comes to mind would be a generic for a prop, but I'm curious how it'd look for events/slots....

What `svelte-highlight`, `routify` versions are you using?

Try [xml](https://github.com/metonym/svelte-highlight/blob/ca3f390e1d4d974b3b983778c9a2343edaf650f8/SUPPORTED_LANGUAGES.md#xml-xml)

Interesting. This library re-exports all available languages from highlight.js. I'd suggest raising an issue in highlight.js.

This library's build script uses the `hljs.listLanguages` API: https://github.com/metonym/svelte-highlight/blob/ca3f390e1d4d974b3b983778c9a2343edaf650f8/scripts/build-languages.js#L10 On unpkg, `highlight.js` exports the following languages: https://unpkg.com/browse/[email protected]/lib/languages/ A cursory search of `highlight.js` issues indicates that `html/xml` is an alias for...