{"_id":"@_janina/mdx","_rev":"2-587662ff201718424a2959bd4bf07a67","name":"@_janina/mdx","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.1-0":{"name":"@_janina/mdx","version":"0.0.1-0","author":{"name":"Janina Wibker"},"license":"MIT","_id":"@_janina/mdx@0.0.1-0","maintainers":[{"name":"_janina","email":"me@janina.lol"}],"homepage":"https://github.com/JaninaWibker/docs/tree/main/mdx","bugs":{"url":"https://github.com/JaninaWibker/docs/issues"},"dist":{"shasum":"4398e83851a661a5bd3442b67aeeb979415e6a15","tarball":"https://registry.npmjs.org/@_janina/mdx/-/mdx-0.0.1-0.tgz","fileCount":14,"integrity":"sha512-GkhwBp5EtrVPnLn8VQABOgyJoSIUqPM5JjxutUNj9hSqT0s8DrOJBds5UcCEj1nk5baSnMDgPIkU27ew+Y1iHw==","signatures":[{"sig":"MEUCICvs0Io2iS89LLVWcnIExepv+ywfKzmM6PHiz0ExSdhwAiEAmWcyueyd6Qa5y+h0z0953iWSMXzy7wxr0pK9bJCna1M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":53881},"main":"dist/index.mjs","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"25721d863908508b248a0c4a75cefa3e2d99cfc9","scripts":{"dev":"tsup --watch","lint":"eslint ./src --ext ts","build":"tsup","ci:publish-preparations":"cp ../LICENSE ."},"_npmUser":{"name":"_janina","email":"me@janina.lol"},"repository":{"url":"git+https://github.com/JaninaWibker/docs.git","type":"git"},"_npmVersion":"10.9.2","description":"A collection of MDX plugins which make writing documentation a bit easier","directories":{},"_nodeVersion":"22.14.0","dependencies":{"shiki":"^0.14.3","ts-pattern":"^4.3.0","mdx-annotations":"^0.1.3","unist-util-visit":"^4.1.2","shiki-renderer-hast":"^1.1.5","hast-util-is-element":"^2.1.3","recma-nextjs-static-props":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^6.7.0","eslint":"^8.47.0","unified":"^10.1.2","prettier":"^2.8.8","typescript":"^5.1.6","@types/hast":"^2.3.5","@types/node":"^18.17.5","@types/estree":"^1.0.1","eslint-plugin-n":"^15.7.0","eslint-plugin-import":"^2.28.0","eslint-plugin-promise":"^6.1.1","eslint-config-prettier":"^8.10.0","eslint-config-standard":"^17.1.0","eslint-plugin-prettier":"^4.2.1","@typescript-eslint/parser":"^5.62.0","@typescript-eslint/eslint-plugin":"^5.62.0"},"_npmOperationalInternal":{"tmp":"tmp/mdx_0.0.1-0_1742209327897_0.61068583860224","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@_janina/mdx","version":"1.0.3","description":"A collection of MDX plugins which make writing documentation a bit easier","license":"MIT","author":{"name":"Janina Wibker"},"homepage":"https://github.com/JaninaWibker/docs/tree/main/mdx","repository":{"type":"git","url":"git+https://github.com/JaninaWibker/docs.git"},"main":"dist/index.mjs","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup","dev":"tsup --watch","lint":"eslint ./src --ext ts","ci:publish-preparations":"cp ../LICENSE ."},"dependencies":{"hast-util-is-element":"^2.1.3","mdx-annotations":"^0.1.3","recma-nextjs-static-props":"^1.0.0","shiki":"^0.14.3","shiki-renderer-hast":"^1.1.5","ts-pattern":"^4.3.0","unist-util-visit":"^4.1.2"},"devDependencies":{"@types/estree":"^1.0.1","@types/hast":"^2.3.5","@types/node":"^18.17.5","@typescript-eslint/eslint-plugin":"^5.62.0","@typescript-eslint/parser":"^5.62.0","eslint":"^8.47.0","eslint-config-prettier":"^8.10.0","eslint-config-standard":"^17.1.0","eslint-plugin-import":"^2.28.0","eslint-plugin-n":"^15.7.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-prettier":"^4.2.1","prettier":"^2.8.8","tsup":"^6.7.0","typescript":"^5.1.6","unified":"^10.1.2"},"_id":"@_janina/mdx@1.0.3","gitHead":"2f137a57c318ad95227805be810151d389e526c4","bugs":{"url":"https://github.com/JaninaWibker/docs/issues"},"_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-8gs27WD/XG5NnX5nTKX4pj7PMhdKxkkoABSDzERu2cM4vtZE/0Ar7w9yx1Zr64k3B3plNZW2zIxrbJ4edcRXjg==","shasum":"1cca356695d0bc270e4b2182d402dba37c1ecfb0","tarball":"https://registry.npmjs.org/@_janina/mdx/-/mdx-1.0.3.tgz","fileCount":14,"unpackedSize":53879,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEShZklq5ZacS1T97s0p4YOnlRKUAqzcaut0nEZwmNECAiALhKZuXSqUUOpz2c47LANZM9CwgpL58MSq054htCIyAg=="}]},"_npmUser":{"name":"_janina","email":"me@janina.lol"},"directories":{},"maintainers":[{"name":"_janina","email":"me@janina.lol"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mdx_1.0.3_1742209626978_0.007141241050941716"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-17T11:02:07.793Z","modified":"2025-03-17T11:07:07.403Z","0.0.1-0":"2025-03-17T11:02:08.113Z","1.0.3":"2025-03-17T11:07:07.215Z"},"bugs":{"url":"https://github.com/JaninaWibker/docs/issues"},"author":{"name":"Janina Wibker"},"license":"MIT","homepage":"https://github.com/JaninaWibker/docs/tree/main/mdx","repository":{"type":"git","url":"git+https://github.com/JaninaWibker/docs.git"},"description":"A collection of MDX plugins which make writing documentation a bit easier","maintainers":[{"name":"_janina","email":"me@janina.lol"}],"readme":"# MDX plugins\n\nThis is a collection of MDX plugins which make writing documentation a bit easier.\n\n## Features\n\n- Syntax highlighting (using [shiki](https://shiki.matsu.io/))\n- Annotate and highlight certain sections of code\n- Add custom props to mdx elements (using [mdx-annotations](https://www.npmjs.com/package/mdx-annotations))\n\n## Usage\n\n1. Install\n2. Add plugins to your `next.config.js` file\n\n```bash\npnpm add @_janina/mdx\n```\n\n```js\nimport {\n  rehypeParseCodeBlocks,\n  rehypeShiki,\n  rehypeHighlight,\n  rehypeMdxAnnotations,\n  recmaNextjsStaticProps,\n  recmaMdxAnnotations,\n  remarkMdxAnnotations\n} from '@_janina/mdx'\n\nconst withMDX = nextMDX({\n  options: {\n    remarkPlugins: [remarkMdxAnnotations],\n    rehypePlugins: [rehypeMdxAnnotations, rehypeParseCodeBlocks, rehypeShiki, rehypeHighlight],\n    recmaPlugins: [recmaMdxAnnotations, recmaNextjsStaticProps],\n    providerImportSource: '@mdx-js/react'\n  }\n})\n\n/** @type {import('next').NextConfig} */\nconst nextConfig = {\n  // ...\n}\n\nexport default withMDX(nextConfig)\n```\n","readmeFilename":"readme.md"}