{"name":"@mdx-js/react","version":"2.0.0-ci.18","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":"dist/mdx-react.js","module":"dist/mdx-react.es.js","exports":{"import":"./dist/mdx-react.modern.js","require":"./dist/mdx-react.js"},"types":"types/index.d.ts","keywords":["mdx","markdown","react","jsx","remark","mdxast"],"scripts":{"build":"microbundle -f modern,es,cjs src/index.js --generateTypes false","test-api":"jest test","test-coverage":"jest test --coverage","test-types":"dtslint types","test":"yarn test-coverage && yarn test-types"},"peerDependencies":{"react":">=16"},"devDependencies":{"microbundle":"^0.13.3","react":"^17.0.0","react-dom":"^17.0.0"},"gitHead":"3a965dbb51d4baa9fa4a5f9916886cfd4c4309e6","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.18","_nodeVersion":"14.17.5","_npmVersion":"lerna/3.22.1/node@v14.17.5+x64 (linux)","dist":{"integrity":"sha512-7QSLroW42ZDoe73pSrlJB+3I35tG3W3LKlmO/9SB5QgP5SDh10UW23HnUPS4vn7uyxIUr3T/xH0NE/ybGa4dyw==","shasum":"386192dcac9e0a0be0a863602bcb88b1fb63c1d7","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-2.0.0-ci.18.tgz","fileCount":10,"unpackedSize":154446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhKoLpCRA9TVsSAnZWagAAtu0P/jyEJpSd4sFBwdLur2qg\nAU3qvGYoFryyL65XDyiM7C4jLNPa3DEXbLe15pAGdu1JTJTnTnTKmwQwKVs4\nykfLwewNJ6MzinZJofglfLtbhwMoKoKsWMZdzK/eVocZ5iQdAWl0d/uQqX9p\nULVKqqgAKHlCCjIPeNvd9O3JhmlpOCfcuS4y9xcIdReyVa2bSoVvnKy7H39P\nnz25uHz7FpV136M2iinIgrvYAha8LTr6or3cCVgPY3o1N/5w4cktrw7Ca9hp\ncYDC5UMJJFtRwvKn8k6TtBpJcW+DcOZdX8TBIg/MO0rj6LQ2fEruPBTz9FUT\nApch3GxSb5k40CIN8JS+D6S9ba9MWcZmbzITXGu/kidZXwZZ9UPlrD5fLsSh\nLsXjjweLlvaThX8iEtLg2qX7unf+pu3N7gbbBse/cOW1P1vFLELOWImQtPZq\nCpO5dvJphMgsrndjkA342iivW/suO0lWhCx/x6qelc9ngtlFRIb1+MgSU9oc\nVcTvKnIf+Qh0OFbjaODKNMJEDdPYRqmQydA519hvD/IO6/HtzP9fnNECLF7Z\nz8hoUP/EkIrJcfe/JHVP7frdlysDbw25Ooq5dwuNmslNM2YI5hSCievUgOEw\n71VRhAOWswokx8MMIx2lHrx/jqvGGJFF/pOgUNSBiCIl1rKz5SxiAn9sJ3+L\nteRm\r\n=m1gl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5MuXQGkVnoET+87AAGj1lqjsaloWBG7P6hMS6zRJcgwIgMDkHGzqx3Tk+wgnNOzVaVpHPP7iQ0iY0Vxp569MuPeU="}],"size":43549,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-2.0.0-ci.18.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.18_1630175977168_0.24254115890368344"},"_hasShrinkwrap":false,"publish_time":1630175977317,"_cnpm_publish_time":1630175977317,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}