{"name":"@mdx-js/react","version":"2.0.0-ci.53","description":"React implementation for MDX","repository":{"type":"git","url":"git+https://github.com/mdx-js/mdx.git","directory":"packages/react"},"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":"9a0fe3ae5afaa70ce2382fa9b8cd2630643a6343","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.53","_nodeVersion":"12.9.0","_npmVersion":"lerna/4.0.0/node@v12.9.0+x64 (linux)","dist":{"integrity":"sha512-8YaKaCYo8Z6WClBrhimqTFXiCmbJ3jLkQa5x3fxBpHWb3xNJi1WMrgCjkAGH2k69dnmQ4MJ5hxoGAkKsdh/r0Q==","shasum":"6ca72474142dc7827ace4358c4da4e6cba481663","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-2.0.0-ci.53.tgz","fileCount":7,"unpackedSize":9867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhP4S/CRA9TVsSAnZWagAAAi0P/1XZlwtmTSu+sW27UwL2\nAzpj19csxol7vs3yVVUlIHYQ2A859aEdcSn9rhvXJB8SWbIi5AK0+iOFpG4X\n7eOD0VWqf0SEtGZKtr6JDPUtURD2WWXg6zAwC3JMxHLB0yobIzjM4aa4eb/S\nWmb9i2NtiBj4QsK/t/TjKeG76tbfELt/DTSW7Hap5L7CSWiUm+UbL+wc/klA\nthDFIc+JkSEU5cDRUZ1WXbozuCDYjMjkep+Ho6OcZWbyM/cgrzA6zx/d8j7b\n04QuiHIaOIYO7JPr+5T5RXPCYVKpKfoVgy5c0q3L7oqRBxi7uyGsIyISp+pr\nzf/bdbTIqrZeU9OcAnl7jWGTHrawUVGh166D+/RonN2w0u+3e+ySqu/cOXVQ\n+0nODi6PZYNBufGiLBrXfEcqTB4TbjbLR0VYRZqQyQn2jju1kn+bKmTLiz5z\n4+J+56HsqD3yNv4z3PjFEWFfBwK3HlFJQ3m6xPm0rlMIXOkDy1MkJ6cOwFiN\nzLdct+JxVX0eGPJigN+M1KfVqT6AYuWsjjjuEp9lvcnMjfURpl4/22hd1vwm\nhUE3+gvLTtoYGpk3DqYROo+Thea5dPnTk8QzENJ2k+z80RPu44ElluEFo2IX\ncvwPFnZHLizW2sWieHElvUCVW7i5Gq8t84lfFLpy+ds80MLbeuxEPao347mr\nL7TF\r\n=I46s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOz/2khU9YRJTXN7k+dYFkgJPh3gBISWQIIS9+wXeZmAiEAt4cSdosvrebCXTaWThWLjc22O782T1LK4dbLnsDEJ1o="}],"size":4073,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-2.0.0-ci.53.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.53_1631552703362_0.858158269960364"},"_hasShrinkwrap":false,"publish_time":1631552703566,"_cnpm_publish_time":1631552703566,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}