Sebastian Sdorra

Results 108 comments of Sebastian Sdorra

Yes, you are absolutely right. We should change the documentation and use `next.config.mjs` with esm syntax for the code snippets. Or we could use tabs, with one for each [type...

Hi @tsriram, MDX works only with react. MDsveX is the way to go for svelte. It should be possible to use [compile of MDsveX](https://mdsvex.pngwn.io/docs#compile) within the transform function of content-collections....

Yes, the package should call the compile function of mdsvex and cache the results. You can look at how the MDX and Markdown packages are implemented for inspiration.

@theetrain this is a neat approach. But I would like to have a similar API as the one for the MDX package. If this is not possible or if the...

@git-no as far as I understand, `mdsvex` is a popular Markdown preprocessor in the Svelte environment, and the idea is to create an `mdsvex` integration for content collections.

@git-no, the first parameter of the `transform` function is the `document`, and the document contains all fields from the schema, plus the content and the `_meta` field. The schema describes...

Hi @Kuzry, it is not possible to access the documents of a collection within the transform function of the same collection. The simplest thing that comes to my mind to...