Gatsby plugin to provide VS Code’s syntax highlighting to Markdown code fences
I am using this package in my blog made with `nextjs` framework I followed the example in [readme.md](https://github.com/andrewbranch/gatsby-remark-vscode#usage-as-a-remark-plugin-without-gatsby) and also did an additional configuration in my `next.config.mjs` file ```javascript import remarkVscode from 'gatsby-remark-vscode'; import nextConfigMDX from '@next/mdx'; const withMDX = nextConfigMDX({ extension: /\.mdx?$/, options: { remarkPlugins: [ [ remarkVscode.remarkPlugin, { injectStyles: false, theme: { default: 'Dark+ (default dark)', parentSelector: { 'body.dark': 'Dark+ (default dark)', 'body.light': 'Light+ (default light)', }, }, }, ], ], }, }); /** @type {import('next').NextConfig} */ const nextConfig = { pageExtensions: ['js', 'jsx', 'tsx', 'md', 'mdx'], }; export default withMDX(nextConfig); ``` this has worked perfectly for me ❤️ ! the problem is that this package installs the `gatsby` package unnecessarily and with the gatsby package comes several other unnecessary packages causing my `npm audit` to fire with several vulnerabilities problems  a simple solution would be to remove `peerDependencies` field in `package.json` ```json {diff} "dependencies": { "decompress": "^4.2.0", "json5": "^2.1.1", "loglevel": "^1.6.4", "plist": "^3.0.1", "unist-util-visit": "^1.4.1", "vscode-oniguruma": "^1.4.0", "vscode-textmate": "^5.2.0" }, - "peerDependencies": { - "gatsby": "^2.12.1 || ^3.1.1" - }, ``` I'm available to make a pull request if that makes sense to any of you.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by Rodrigo54 and has received 3 comments.