{"name":"@mdx-js/react","version":"2.0.0-ci.42","description":"React implementation for MDX","repository":{"type":"git","url":"git+https://github.com/mdx-js/mdx.git"},"homepage":"https://mdxjs.com","bugs":{"url":"https://github.com/mdx-js/mdx/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"John Otander","email":"johnotander@gmail.com","url":"http://johnotander.com"},"contributors":[{"name":"John Otander","email":"johnotander@gmail.com","url":"http://johnotander.com"},{"name":"Tim Neutkens","email":"tim@vercel.com"},{"name":"Matija Marohnić","email":"matija.marohnic@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"JounQin","email":"admin@1stg.me","url":"https://www.1stg.me"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"license":"MIT","main":"src/index.js","types":"types/index.d.ts","keywords":["mdx","markdown","react","jsx","remark","mdxast"],"scripts":{"test-api":"uvu -r esbuild-register test \"\\.jsx?$\"","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test-types":"dtslint types","test":"yarn test-coverage && yarn test-types"},"peerDependencies":{"react":">=16"},"devDependencies":{"react":"^17.0.0","react-dom":"^17.0.0"},"gitHead":"6a27dbd6a98962a702c0b6b2894f7b58eefb0de3","readme":"# `@mdx-js/react`\n\n[![Build][build-badge]][build]\n[![Downloads][downloads-badge]][downloads]\n[![Sponsors][sponsors-badge]][opencollective]\n[![Backers][backers-badge]][opencollective]\n[![Chat][chat-badge]][chat]\n\nReact renderer for [MDX][]: JSX in Markdown.\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install @mdx-js/react\n```\n\n[yarn][]:\n\n```sh\nyarn add @mdx-js/react\n```\n\n## Use\n\nSay we have the following code in `example.mdx`:\n\n```markdown\n# Hello, world! {1 + 1}\n```\n\nAnd our script, `example.jsx`:\n\n```jsx\nimport React from 'react'\nimport {MDXProvider} from '@mdx-js/react'\nimport {renderToString} from 'react-dom/server'\n\nimport Example from './example.mdx'\n\nconst h1 = props => <h1 style={{color: 'tomato'}} {...props} />\n\nconsole.log(\n  renderToString(\n    <MDXProvider components={{h1}}>\n      <Example />\n    </MDXProvider>\n  )\n)\n```\n\nNow, building, bundling, and finally running it, yields:\n\n```html\n<h1 style=\"color:tomato\">Hello, world! 2</h1>\n```\n\nNote that you must configure whatever you use to load `.mdx` files to use `mdx`\nfrom `@mdx-js/react`.\nThe webpack loader does this automatically.\n\n## Contribute\n\nSee [Contributing on `mdxjs.com`][contributing] for ways to get started.\nSee [Support][] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][] © [Compositor][] and [Vercel][]\n\n[build-badge]: https://github.com/mdx-js/mdx/workflows/CI/badge.svg\n[build]: https://github.com/mdx-js/mdx/actions\n[downloads-badge]: https://img.shields.io/npm/dm/@mdx-js/react.svg\n[downloads]: https://www.npmjs.com/package/@mdx-js/react\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n[opencollective]: https://opencollective.com/unified\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n[chat]: https://github.com/mdx-js/mdx/discussions\n[mdx]: https://mdxjs.com\n[npm]: https://docs.npmjs.com/cli/install\n[yarn]: https://yarnpkg.com/cli/add\n[contributing]: https://mdxjs.com/contributing\n[support]: https://mdxjs.com/support\n[coc]: https://github.com/mdx-js/.github/blob/master/code-of-conduct.md\n[mit]: license\n[compositor]: https://compositor.io\n[vercel]: https://vercel.com\n","readmeFilename":"readme.md","_id":"@mdx-js/react@2.0.0-ci.42","_nodeVersion":"12.9.0","_npmVersion":"lerna/4.0.0/node@v12.9.0+x64 (linux)","dist":{"integrity":"sha512-sObZqwWSecxJKRUxKEGFTatfeDTYpJZ9kyMCS0LX4cLS3h2fKAc4+FLYuWCyjEKXXpibgk+Sn9qi5IaGyhMHFw==","shasum":"282c79f9bb5ccfff560baffd28302b63659e2553","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-2.0.0-ci.42.tgz","fileCount":7,"unpackedSize":9694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhPlSFCRA9TVsSAnZWagAAb18P/1DJ1hAx1bjGJbyO44Cx\niN9bql8Jtub2sN3Vshyjb/1QFQP4QKVadUn8GRBbB7UeUuTrU0/nV3HNmY/R\nd7GdIjgM1qMEd8/CQFhaOn7ECutflDpAPPsLqk6a2NvlCakG4n6WsxioQ+i/\nwqsyd3Dh4j/BMz5Je0hoV3elkLB4nfP3WK8GxtshCuGfw1Ge8hsgHzTUC+u2\n2BSqfY3Me+6pPfUDMi11rOKu02kRTOr90pCSapOpJhWmIfUQ+phzQGrGuOpx\nUjFh7JV0d1seGFaFKx0d5qNgSN8YArzj/lO4N3KzkJ5HWu6vvTs8W2eoKXuF\nKtKz3gkac2hzfnjlokeKmNsRZJMq1M8QH89OucZ70MNJ48bIUQEAUJtyqyon\nmHHvuY26dFm7RjFGz0KN2Jcjia4HCFWQHwAFTqvTAwmvEj8Dmz8BUNEMUPpV\nwi4ATfVJgEX5ZxCZ1A6grnVgRxYtM8RomfX8tACBfPKhiQeSrWHXhT6+5L/c\n0t8NmFFUiK3Ilw7twyMwlAaDfoJmPI5K5jr6x/S5xqlKTDJ8ADi3fTGgJNcD\n/Vbt2Dqv8dAfjv0nG4j08TUCRdq6TTlVi5LVhra/8C3P8hmzMZWUqtQFNn5h\ni+9Z4WCCGm6RjVVhF9R9pPBQ0o80anqKGsIFB/Mhph49BNNswfu3Lxl34mmZ\nDBMh\r\n=RquU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbViVYUXiigwk6/9aqWOqKdIJ+dUU5YkBFbD7eGimxbAiBLgLBcgw1XFHvx0QBJjENLFfh6HjPX2Iou4K+OZse5dA=="}],"size":4038,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-2.0.0-ci.42.tgz"},"_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"directories":{},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"silvenon","email":"matija.marohnic@gmail.com"},{"name":"timneutkens","email":"tim@timneutkens.nl"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_2.0.0-ci.42_1631474821440_0.35689061669013666"},"_hasShrinkwrap":false,"publish_time":1631474821608,"_cnpm_publish_time":1631474821608,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}