{"name":"@mdx-js/react","version":"1.0.0-ci.1","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":"cb67ce7f0c14721be0f9ed507e20b58097f57943","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-ci.1","_nodeVersion":"8.15.1","_npmVersion":"lerna/3.13.1/node@v8.15.1+x64 (linux)","dist":{"integrity":"sha512-mTu5r29SsXv+cg0O4hdZX+hoDTrEq8cRZkihmXuxBMoL6ICZZ5mdz5fjGNnELemj5SVBSZCZSnjkrtyA9KbVGw==","shasum":"0af9b275ed4374d9de9b308fdad5a3cc4e5ce7d5","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-1.0.0-ci.1.tgz","fileCount":5,"unpackedSize":6562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcr5cfCRA9TVsSAnZWagAAlDYP/iVz2UdG19PdoLAVVmIG\nY/PawKjrXBZs9qGVIq7YR0rI1DJ5B0ZvI3znhiTtJGJ9OlJzQruCGpfPklYN\nianoGUIOXmmeuX/1gZgX4+iDhXQF26cGkLg7dStEsd3ENMLmjtnrrIZ77/CK\nWuYw3FAjVaZ56BUic7kktCmfN8Km8SaOlb2zRaf47y7+BK1qFPQsVQ8xrMNo\ngWLfqCYwxIOrxVsKP9FiSuNGuhUvogEOzXOPj+dBKBEa+qpGU/uOg79DOjxK\nwWBx8q+/7sx1BJqrpjVkv6SprSNk2Zdu1z4goqWS/oc16/K51ooGI79tQuWL\nRsS+9HdgKpK/PU1jL5csjEZBrLc+B+vTqJArfqMFnZKmgjXH1KSgnSE32ocB\n/fe3ZXH5mzAQZR+NVdjRTcbOdatoCjSp0iwkWRUtDXVyJmfRZZXugIfFxIDi\nQsOMTh736zIlz2jLjiyZKeuuAodR6RkrZEsYyXq6xp8P8zXi78SqIanlwslW\nWGYl8Pc34g1+vpopRJIEPUAp8wwq6DMoF54UPeEPdhVUKW2ftXXilLIeuSMd\nY2yxCMiE7q3769SwWGwcHGxryTo0iSWCuW4t2Gi/KalvRfPs+2AtqRJ0tIzq\ndjdgHq/BKZzQN/WZIXPqv654PlLI1xKQSMVO4e+5AnndKS3JppuFQGbKhcD5\nqlZc\r\n=t5EO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD57E93C1tjW01mtP8s7jtxm8aeFa9E4uvZZtrj8r2PNAIgMOa84jlWJLccyJ0gbVdfPig9oUpHl38p3LUjFyd1kjc="}],"size":3092,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-1.0.0-ci.1.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.0-ci.1_1555011358605_0.30769996449167447"},"_hasShrinkwrap":false,"publish_time":1555011358687,"_cnpm_publish_time":1555011358687,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}