There are many ways to use markdown files with Content Collections.
We can use packages like react-markdown to compile the files at runtime.
Or we can use remark to compile the files at build time.
The package @content-collections/markdown simplifies the usage of remark with Content Collections.
Let's see how we can use it.
First we have to install the package @content-collections/markdown package.
After installing the package, we can use the compileMarkdown function to compile the content of our document.
Now we can use the compiled html in our project.
The following snippet shows an example with React.
And the next snippet shows an example with Svelte.