{"name":"@mdx-js/react","version":"1.0.0-alpha.16","description":"React implementation for MDX","license":"MIT","keywords":["mdx","markdown","react","jsx","remark","mdxast"],"homepage":"https://mdxjs.com","repository":{"type":"git","url":"git+https://github.com/mdx-js/mdx.git"},"bugs":{"url":"https://github.com/mdx-js/mdx/issues"},"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"}],"main":"dist/index.js","devDependencies":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","jest":"^23.1.0","react":"^16.8.0","react-dom":"^16.8.0","rimraf":"^2.6.3"},"peerDependencies":{"react":"^16.8.0"},"scripts":{"build":"babel src -d dist","clean":"rimraf dist","prepublish":"npm run clean && npm run build","test":"jest"},"gitHead":"0cca7119cc1b8980722939db2b85a521ecc56532","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```jsx\n/* @jsx mdx */\nimport React from 'react'\nimport {renderToString} from 'react-dom/server'\nimport {MDXProvider, mdx} from '@mdx/react'\n\nconst H1 = props => <h1 style={{color: 'tomato'}} {...props} />\n\nconsole.log(\n  renderToString(\n    <MDXProvider components={{ h1: H1 }}>\n      <h1>Hello, world!</h1>\n    </MDXProvider>\n  )\n)\n```\n\nYields:\n\n```html\n<h1 style=\"color:tomato\">Hello, world!</h1>\n```\n\n## Contribute\n\nSee [`contributing.md` in `mdx-js/mdx`][contributing] for ways to get started.\n\nThis organisation 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.org/mdx-js/mdx\n\n[build-badge]: https://travis-ci.org/mdx-js/mdx.svg?branch=master\n\n[lerna]: https://lernajs.io/\n\n[lerna-badge]: https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg\n\n[spectrum]: https://spectrum.chat/mdx\n\n[spectrum-badge]: https://withspectrum.github.io/badge/badge.svg\n\n[contributing]: https://github.com/mdx-js/mdx/blob/master/contributing.md\n\n[coc]: https://github.com/mdx-js/mdx/blob/master/code-of-conduct.md\n\n[mit]: license\n\n[compositor]: https://compositor.io\n\n[zeit]: https://zeit.co\n\n[mdx]: https://github.com/mdx-js/mdx\n\n[npm]: https://docs.npmjs.com/cli/install\n","readmeFilename":"readme.md","_id":"@mdx-js/react@1.0.0-alpha.16","_nodeVersion":"11.6.0","_npmVersion":"lerna/3.13.1/node@v11.6.0+x64 (darwin)","dist":{"integrity":"sha512-rb7TSTFYMBwPfgk6VsZw9zUynDofK1O7VnN2ebUjCWRVv7zzJ9tPowrd67OiEMadp8oXyRnMlNipsUc1neBBJQ==","shasum":"eda78e6cd0f1c2cf4a2683c2e613581491dcd081","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-1.0.0-alpha.16.tgz","fileCount":7,"unpackedSize":8514,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnmNYCRA9TVsSAnZWagAA+SoP/j0scjSW7kLpgX1uCjP6\nFAOXyof3/6I9n8RriTVVEKQPWatLeJOAiIysUbk80wTOdcEukC+wRWSp7yLq\n0AH/lVgajTr2CUfkQLfQYM6fHtQYxnHDYB8bQMmfx5OlkcARx5j7Lb6a0XHZ\nC3xK2GMRiYP/XkM6zygEfflzO+L0FSFgY/pz6UnyBBa+jb7mdg9KjF2dRAPK\nQeuaiqFl7l68UZ9cxOPsHxmGD7ZssDpZh/Ifu7PUsV6uSGjqsuZNpCCIU4qH\nLYppxZtLb83oKr9UOhPimP6534EHDGIbn8xmpYD+VM7jxHPEscizx3FdsJ+n\nAsHdNNk7MNpy/EOHkHjb0nHDFJ4d0QO3vEDQ4UsB2bnW1YKq35iHUPi2FM+4\nMQilxcu+KHtVjm+YkN5ryHmCyXC7OEVXs5PyRauHYmb1hmqNyUUm7iVM+P/h\nXIQoEhvX5tF5yA1gF6JxYOxKjNnguVMIO0W1Q3XFFiONePy4va8oI5SYGVSD\nQDgstRheESBrWS3e0EtJmC+CE+RnsaFniGQrjUr/X1hdda0lMz7iS23s8GFb\nAL4gNlLkT3dEcbWeQy64CeD/4p18Pm+rRILJ1ObarYugWPNZ88zhbRREwiki\nFE/1EiW9zpF++djDpN6kWUg2rBB9VQtnZZfq/1dPSZ3cX6hUHTbLaM8rtqTv\nWbdG\r\n=LghB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu0fryEmpYOoCVUQnRBL+GVnL4iv5zF7VOwbIQuH5phwIhAIialJBOXEe5La60Pew4FRdIGRczvvpxTXW6TUtHqRL2"}],"size":3445,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-1.0.0-alpha.16.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"johno-bot","email":"johnotander+npm-johno-bot@gmail.com"},{"name":"silvenon","email":"matija.marohnic@gmail.com"},{"name":"timneutkens","email":"tim@timneutkens.nl"}],"_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_1.0.0-alpha.16_1553883992195_0.38275524886592116"},"_hasShrinkwrap":false,"publish_time":1553883992332,"_cnpm_publish_time":1553883992332,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}