Ask questionsUpgrade dependency on remark to ^13 for compatibility with plugins
<!-- Thank you for suggesting an idea to make this project better!
Please fill in as much of the template below as you’re able.
P.S. have you seen our support and contributing docs? https://mdxjs.com/support https://mdxjs.com/contributing -->
Updating the remark version. I require at least remark 13.
Some of the remark plugins (e.g. remark-gfm) require an updated version of remark.
$ yarn install
[remark-gfm] Warning: please upgrade to remark 13 to use this plugin
My dependencies are listed below. The problem started when I switched from remark-html to next-mdx-remote.
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-brands-svg-icons": "^5.15.3",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/react-fontawesome": "^0.1.14",
"@tailwindcss/typography": "^0.4.0",
"classnames": "2.3.1",
"date-fns": "2.21.1",
"gray-matter": "4.0.3",
"js-yaml": "^4.1.0",
"next": "latest",
"next-mdx-remote": "^2.1.4",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"remark": "13.0.0",
"remark-autolink-headings": "^6.0.1",
"remark-emoji": "^2.2.0",
"remark-external-links": "^8.0.0",
"remark-gfm": "^1.0.0",
"remark-slug": "^6.0.0"
},
"devDependencies": {
"autoprefixer": "^10.2.1",
"next-remote-watch": "^1.0.0",
"postcss": "^8.2.13",
"tailwindcss": "^2.1.2"
},
Remark GFM can be used without the warning.
N.A.
https://github.com/hashicorp/next-mdx-remote/issues/122
Answer
questions
ChristianMurphy
Another option is XDM (https://github.com/wooorm/xdm) which is a lighter implementation of MDX 2, which has remark ^13 on it's stable release.
Related questions