Open feliche93 opened 1 year ago
I had a similar problem, I'm not sure what Markdown implementation Contentlayer uses, but I imagine tables aren't supported. I resolved the issue by installing the remark-gfm package and adding it to the contentlayer.config.js
file. After that, the tables rendered correctly for me. Code snippet below for reference:
import remarkGfm from 'remark-gfm'
...
export default makeSource({
contentDirPath: 'posts',
documentTypes: [Post],
mdx: {
remarkPlugins: [remarkGfm],
},
})
@mohammedyh Thanks!
In this sample post the table style layouts do not seem to be working: https://next-contentlayer.vercel.app/posts/dynamic-routing-static-regeneration