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.
pnpm add @content-collections/markdown
After installing the package, we can use the compileMarkdown function to compile the content of our document.