sadmann7 / skateshop

An open source e-commerce skateshop build with everything new in Next.js.
https://skateshop.sadmn.com
MIT License
5.3k stars 761 forks source link

fix tables in markdown #98

Closed capsloq closed 11 months ago

capsloq commented 11 months ago

tables in blog posts are currently not working: image

Downgrade of remark-gfm because of this bug: https://github.com/contentlayerdev/contentlayer/issues/558

Adding remark to contentlayer plugins

vercel[bot] commented 11 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @sadmann7 on Vercel.

@sadmann7 first needs to authorize it.

sadmann7 commented 11 months ago

Thanks

sadmann7 commented 11 months ago

This version gives typeerror on the markdown remark plugins tho

capsloq commented 11 months ago

This version (3.0.1) works for me and Node 21. You can try remark-gfm 4.0.0 but that gives me the error: [ERROR] TypeError: Cannot read properties of undefined (reading 'inTable')

dstroot commented 11 months ago

You have to stay on remark-gfm 3.0.1 as @capsloq noted. Anything higher throws the type error. I'd REALLY like to see Contentlayer get some love and get updated!