{"name":"@mdx-js/react","version":"2.0.0-next.8","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/cjs.js","module":"dist/esm.js","types":"types/index.d.ts","keywords":["mdx","markdown","react","jsx","remark","mdxast"],"scripts":{"test-types":"dtslint types"},"peerDependencies":{"react":"^16.13.1"},"gitHead":"e194fc1a61715549be10d56055ea4ad25533fcb1","readme":"# `@mdx-js/react`\n\n[![Build Status][build-badge]][build]\n[![lerna][lerna-badge]][lerna]\n[![Join the community on Spectrum][spectrum-badge]][spectrum]\n\nMap components to HTML elements based on the Markdown syntax.\nServes as the React implementation for [MDX][].\n\n## Installation\n\n[npm][]:\n\n```sh\nnpm install --save @mdx-js/react\n```\n\n## Usage\n\n```md\n<!-- helloworld.md -->\n\n# Hello, World!\n```\n\n```jsx\nimport React from 'react'\nimport {MDXProvider} from '@mdx-js/react'\nimport {renderToString} from 'react-dom/server'\n\nimport HelloWorld from './helloworld.md'\n\nconst H1 = props => <h1 style={{color: 'tomato'}} {...props} />\n\nconsole.log(\n  renderToString(\n    <MDXProvider components={{h1: H1}}>\n      <HelloWorld />\n    </MDXProvider>\n  )\n)\n```\n\nYields:\n\n```html\n<h1 style=\"color:tomato\">Hello, world!</h1>\n```\n\n## Contribute\n\nSee the [Support][] and [Contributing][] guidelines on the MDX website for ways\nto (get) help.\n\nThis project has a [Code of Conduct][coc].\nBy interacting with this repository, organisation, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][] © [Compositor][] and [Vercel][]\n\n[build]: https://travis-ci.com/mdx-js/mdx\n[build-badge]: https://travis-ci.com/mdx-js/mdx.svg?branch=master\n[lerna]: https://lernajs.io/\n[lerna-badge]: https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg\n[spectrum]: https://spectrum.chat/mdx\n[spectrum-badge]: https://withspectrum.github.io/badge/badge.svg\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[mdx]: https://github.com/mdx-js/mdx\n[npm]: https://docs.npmjs.com/cli/install\n","readmeFilename":"readme.md","_id":"@mdx-js/react@2.0.0-next.8","_nodeVersion":"10.22.0","_npmVersion":"lerna/3.22.1/node@v10.22.0+x64 (darwin)","dist":{"integrity":"sha512-I/ped8Wb1L4sUlumQmUlYQsH0tjd2Zj2eyCWbqgigpg+rtRlNFO9swkeyr0GY9hNZnwI8QOnJtNe+UdIZim8LQ==","shasum":"fa774dc781600eb075513eebaae6bd705776ac34","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-2.0.0-next.8.tgz","fileCount":6,"unpackedSize":17218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZSp/CRA9TVsSAnZWagAADCcP/jOlbXCj4FxSiJ1GvQJX\ny+RH6eVlDGPhBR4aeuObQiOcFPjJuiIEj0qDkijxBvy8GuWZBTjecw+dlRFE\nWewzbdLsEU4Gl2uwhtihQVWLzkW3EyjXGL1hDuKYlMsLoKnXD7+Oo+Vv7xyg\nR8MyboQF1pkoIQUUkgYdGiAOCeTA+xoUrtHoBlefWFFOoDFgcNQk8iYMAvfv\nTnEtMCDiPj88VEq8ClKMObtOWNLiOyNG2zyAUoCjvGGVht3+p1+4Bgb3b3wY\nsUA7nFRBRxqujIEYD1fdwMbQ8+tUECjptnUFVUUv0NhkDAj71FTje1yhbuLR\np2BpFokqTfS6SzfvyQ/sK4wF6/hdiJ+Q7QXaCzc4AzTR/nrGGpTl/iBDmI6T\nyo9xFSCg66WyIMS9rIR1dR55CPE8JbX0AvchWLAf7aHSy0oBneHYkBnEmFJf\n8wbGmLjGow5nu5w54BuCb5S/pV1Lze/rW9656rG/bos3vtLsTZnlQH7Fk6a7\nvHUELGe4o2YYwiGV4r/Q8F3P2gBO0Iq1zXg7yqWSBRbkyarEvkR3ffrbm5e8\nAdqXDQL8qwUOH/Zkz0N4V0/G5YB3OYlZ2kbI4uvFVpKakcGJUo+COt+RzSjt\n4isC8/GD46eqBZMK2lx5tGdf8/vQyTkVqhf9anXcZp/LcztSStPdgaWC3pd+\n6cOJ\r\n=1jPo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrdZOnMx1oUSbz4DSz/AhfSHW1pUSd6JQt1NPLjqCbeQIgAd2fSHiZYvpZvdDZskzj+Bq88afvcbWIkWyjEGWY9Hk="}],"size":4496,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-2.0.0-next.8.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"timneutkens","email":"tim@timneutkens.nl"},{"name":"silvenon","email":"matija.marohnic@gmail.com"},{"name":"johno","email":"johnotander@gmail.com"}],"_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_2.0.0-next.8_1600465535363_0.015739720265558477"},"_hasShrinkwrap":false,"publish_time":1600465535486,"_cnpm_publish_time":1600465535486,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}