{"name":"@mdx-js/react","version":"1.5.6-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":"cafc84048636ebfc3e261383b10a40a64b88f972","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.6-alpha.0","_nodeVersion":"12.14.1","_npmVersion":"lerna/3.20.2/node@v12.14.1+x64 (darwin)","dist":{"integrity":"sha512-YWIbROTjECPCvGNfTRJkqjnbyLSsD4W6kgdOyRDPKY3EbCE3AvyMxINJAHIRtDPxUF7k/DZ/wkG/t/NXVATo+g==","shasum":"5ac35cf3a082aa900460d892c602f4d2a2d55464","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-1.5.6-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\nwsFcBAEBCAAQBQJeONsICRA9TVsSAnZWagAAfQcP/AqqoH4wH4rXvUZmf/1T\n4JdpU/p2Lgno02jA67yRlYiB3LEWkJVli6iejP7ea2rf+d+Rc6oG6jfeFOGc\nS/5IWlGa407cBpiMAhEqR8uxAke0c2GW7An6QzBUycxeQNh13d8cZ4IFV7aH\nQekB7OV6EFlyesQIEFMGUMfrn73C+MIdpgrwJaBmwlQ2uJclsspp8wXFxFVO\n4RUXR/idBXGQyRYlcT0aYtLZzcvxJ7hrZaD8jwJSX8Aw4QC7dY0ZR0tE3ig/\nDRxxFpHZgZXBPG5AzulynwOge0+6Srv8yvRpMdZRHedgNiWVLw07IyEisxRU\nfveGid2WRmss7wCH6plkvHYi8CNSHREWp+Nm4i5afwKiIbud/UOCdCz78X1s\nuJQlc6YkpkBbom7vzKWpGGUT9ABYKFMuRF1yxpP+qt/GnzlAZpRkAeyIFIBz\nk3DddmVdYo4BkFposDqhczw22gS5hI9mVxoMzMlGqWJ07G90ETnk/7mU9+F5\nhzhzRkne0Vxgxzbpc9ZASR05AkYhJCa50XjQ/8hdf6K8cgw30/mhO1FDk740\nVxWAL/SykVvWmEGNhS/9djlvox4vNov8USFFS6BuyZZ5oCD1q8Fa4IqTv4XS\ngWvzFmmlp0OO++H5BJLtgU7x19XVCgqHM0b+FZFdHpvYcGhWyN9YJFrWRp9/\nITBh\r\n=P2M/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYnasZ4aTrRWNvtAUQVhZ7z1yseQw7lJP17c6V6psHsgIgFDhcvTtrfjuM4WlWePOz6cJmgpHkukqKrPdz5M0xCio="}],"size":3903,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-1.5.6-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.6-alpha.0_1580784391890_0.5892283454724372"},"_hasShrinkwrap":false,"publish_time":1580784392020,"_cnpm_publish_time":1580784392020,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}