Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 1.05 KB

File metadata and controls

32 lines (17 loc) · 1.05 KB

next.js App router example with @next/mdx

introduction

this is a demo using the next.js framework

in the /app directory there is page.mdx file with some content to test the remark table of contents plugin

the MDX configuration, as well as the configuration for the plugin can be found in the mdx-components.tsx in the root folder of the example

install the dependencies

use the following command to install the dependencies (node_modules):

npm i

dev (local) server

to start the dev server, use your terminal and then go into the root of this example, then run the following command:

npm run dev

linting

use the following command if you want to lint the code files:

npm run lint

examples