{"name":"@mdx-js/react","version":"1.5.8-alpha.0","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@zeit.co"},{"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"}],"license":"MIT","main":"dist/cjs.js","module":"dist/esm.js","keywords":["mdx","markdown","react","jsx","remark","mdxast"],"peerDependencies":{"react":"^16.9.0"},"gitHead":"c79c1336ffcd7df8cca618cf15a01c107e1a92bb","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 [ZEIT][]\n\n<!-- Definitions -->\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[zeit]: https://zeit.co\n[mdx]: https://github.com/mdx-js/mdx\n[npm]: https://docs.npmjs.com/cli/install\n","readmeFilename":"readme.md","_id":"@mdx-js/react@1.5.8-alpha.0","_nodeVersion":"12.16.1","_npmVersion":"lerna/3.20.2/node@v12.16.1+x64 (darwin)","dist":{"integrity":"sha512-FL4Ru8Nvty60xqGhBOKzAIjWB4Tm7gc3pqM7PDTPYTYBL4TXxtDf/iaWOtdb7vF0kWkOA7b1asHIuFsFPaHk+Q==","shasum":"a82a1b1a2efb0260faead58b2fbb5ca3c9c655e4","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-1.5.8-alpha.0.tgz","fileCount":5,"unpackedSize":15113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUFoDCRA9TVsSAnZWagAA89gP/3uS+t4VGR5/+NOl37wB\n0GFSfP+fu7NiZP5pLM75Z2O2qyagbunG33vKgA6zgjG2TpJsgPSX8rxbfiLo\nz1M8VrPU4MUzVftBlGtuq6ts6/cDTcoF1ZqZkjs8m5ZIJU1PTW92Dnbh8osf\n0FryXB3EEAHuw7kDHIzxwgJze4uQeitM5u88+vwzyGjlqTcb+ETq5pk9yulY\nqyFf6dHFFLtpatsxhxgcS5tOpbTtvWdxT7MyOtOAKB+dgzoAAM/CYHRf4Kl4\nhNC8xpvqx9jsrUWanoG+avrnUy0bHgDbE5cpl8VhtaofA+FAKG4kX9rKp6e8\nnaU1vLP5VaMJsvYdNcrCbXkPd9MSXwBG0FEFQHcvz4t8X7HSTTh+Q4mIDP7a\nqMA2FFM1nCOfnk5VaN8nWS0n8w2bG9onPHolFzVPsmJJ7yrXh0rXTC2USBE3\nSJ4wIEOOn6g2G/SIT+vuJUVi7Q/ZiWuJNcBsfG5FRtXIXalUTTdkVCti0dSM\n/Es4hDG4WDuS3VKng1riDNtjS/t5DWPAeRY5qfx/Z8XuouJ6m8KT6sAWUKdi\nZnZA5nXgkra5qgKp4eXJwKBcpGu8xGLHfiF0nEilFemm8QeHMRzXiT6/6dg1\nWMDlJy4jz9iQWKv9/od7p7qwiMcbQxffR79fKFLECALBvhHOBHiH9nIGxMxe\nqVSQ\r\n=LVnd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICdyB+pIjfOHMTQvP6NtA0seuztwKbuudaJwRQjIb7bbAiEAvHSHY7bY1+rhcdOlzRr8CUquQEh0idWXKsO4RwEG1pE="}],"size":3902,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-1.5.8-alpha.0.tgz"},"maintainers":[{"email":"johnotander@gmail.com","name":"johno"},{"email":"matija.marohnic@gmail.com","name":"silvenon"},{"email":"tim@timneutkens.nl","name":"timneutkens"},{"email":"tituswormer@gmail.com","name":"wooorm"}],"_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_1.5.8-alpha.0_1582324226854_0.8855521746752344"},"_hasShrinkwrap":false,"publish_time":1582324226956,"_cnpm_publish_time":1582324226956,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}