frouo / next-markdown

Markdown Pages for Next.js with 0 effort, dynamic routes and your layout design
https://twitter.com/nextmarkdown
117 stars 5 forks source link

implemented table of contents for each page #8

Closed dsumer closed 2 years ago

dsumer commented 2 years ago

I've added a test but sadly it fails because the "github-slugger" module is undefined when the test is executed .. needed to mock it in order to create the test

do you maybe know why this is the case? did you have similar problems that node_module packages are undefined in tests?

frouo commented 2 years ago

That's absolutely awesome @dsumer, thank you 🎉 + tests wow 👏

Regarding your last comment, yes, we still have packaging issue, sorry about that. @edvincandon is working on it (cf. https://github.com/frouo/next-markdown/pull/10) and we will fix that in priority.

frouo commented 2 years ago

☝🏻 rebased the branch on top of master