Markdoc plugin for Next.js
The @markdoc/next.js plugin is a tool designed for creating custom .md and .mdoc pages within Next.js applications and automatically rendering them with markdoc. Although the plugin is still in beta until version 1.0.0 is released, it offers a convenient solution for incorporating markdown files in Next.js projects.
To install @markdoc/next.js and integrate it into your project, follow these steps:
npm install @markdoc/next.js
// Add @markdoc/next.js configuration here
Create a new Markdoc file in your project under pages/docs named getting-started.md and add content to it.
To contribute or provide feedback, follow these steps:
npm install
npm test
The @markdoc/next.js plugin offers a valuable solution for integrating markdown files into Next.js applications. By following the installation guide and utilizing its features, developers can easily create custom markdown pages with automatic rendering, contributing guidelines, and a defined code of conduct for community participation.