{"name":"@mdx-js/react","version":"1.0.27-ci.0","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","module":"dist/index.es.js","devDependencies":{"@babel/core":"^7.4.0","@babel/preset-env":"^7.4.2","@babel/preset-react":"^7.0.0","jest":"^24.0.0","microbundle":"^0.11.0","react":"^16.8.0","react-dom":"^16.8.0","rimraf":"^2.6.3"},"peerDependencies":{"react":"^16.8.0"},"scripts":{"build":"microbundle --format es,cjs --external react --jsx React.createElement --no-sourcemap","clean":"rimraf dist","prepublish":"npm run clean && npm run build","test":"jest"},"gitHead":"ad237d8204f5886f0d96fdd79b6545a9dbb8cf52","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-js/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 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\n[build-badge]: https://travis-ci.com/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://mdxjs.com/contributing\n\n[support]: https://mdxjs.com/support\n\n[coc]: https://github.com/mdx-js/.github/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.27-ci.0","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-PlbwhVlF3oD2m6O1SE287EAiPJ8fbfWhkjQvrcuXjec36TDFdN14KTtG/C+H14YKS0a5iLYG+/RrNEXdRf9IDQ==","shasum":"7d077b7d8cfe085e2edafdb745fd94ea5af61a0e","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-1.0.27-ci.0.tgz","fileCount":5,"unpackedSize":6766,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKO5rCRA9TVsSAnZWagAAWfQP/i/QRKZa8pgDVQYVoKyB\n4yOGA9wEbm8CoC5ezdqCHIKOxOAUdUL38Dp+zvmgGVlM5QUaiAFAqnKFv/1J\nJMOdxzoX/KBgiZWDSS6SOntfjH2WDXBXFYlOUHtGpfQHo4QuaHnPusS0xn5D\nznbom49OdNk0rYxlLrZJnSca523GmFETcGmkmBtUQsoRIIG3OcU/mMDf1t2O\ns6mtVDfLBPvKY3K3FJgelH/Yk8Zo+gaUoaZfh3ubdmMzWd9arAWKdEas2qyz\nZb1AZiWyWCjPsgpyIFWuacl620jPtXsd2gDZ8B+HQux+XRyddDiXV5xvgbAT\nABbVjQSq94CTz3mL/hZHoBgB/OY9ndu46FhBlrarEg5ZrniQvEnU6qVV233j\n7076LAqpnEjk2oA/q03vUcB4bmliIeZUFtWoJJC7tGrkeDwmiB6j/pE9LiBF\n88KGO+EWWrxARBnl6kguPz3CtSBvxg7t6L5nz+bayTmZ3mlb/sw90k3A7isU\nhG1/KiAEvNnhsL4mpLgV+//H/FRwHR26OSHCLzY9Jy7J7X3CfY323k5FRMRm\nitoGIonXtsritwGX96FJldUmbiBQAmf5a4Jfqtq6WPDCv00lCndFIbHzqvPv\nnRbMhgipdZlqZtCr3gOKMFSGh6e7vtT6mf3Q0jul0Zt8ZB9dFeMtSr++EZZm\n2cuu\r\n=q/SC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMjq8VaciVU7RrvS/VnhlN87eHH89aF9HdjVLIOsZdvAiEAkByZydD0VLFW2PUocGoZeC9nKSpyyPHji3pQq4FcsGw="}],"size":3183,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-1.0.27-ci.0.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-bot","email":"johnotander+npm-johno-bot@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react_1.0.27-ci.0_1562963562348_0.3669033960137684"},"_hasShrinkwrap":false,"publish_time":1562963562447,"_cnpm_publish_time":1562963562447,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}