{"name":"@mdx-js/react","version":"1.0.22-ci.5","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":"8b8a758c04eafc1bd3eff46fda7e0d1d8d33924d","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.22-ci.5","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.15.0/node@v10.16.0+x64 (linux)","dist":{"integrity":"sha512-IEMUYEwYSB7O86v+MDR5EDKz1i/E0xsSuAjkefzwdDqg+7OsnDvaBhieBad2P0RRquyMkyJHIH0FqFbvBcDxMw==","shasum":"d08832fc59f307966b1466ff99bbb5a691d4574a","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-1.0.22-ci.5.tgz","fileCount":5,"unpackedSize":6692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHLt4CRA9TVsSAnZWagAAwGcP+gP5/bAd8T6qRSjrCdFG\nsgBU0P5Dhc+eswnN4TbD1XjJJe/tvyATlfoY0JKlY5gjczFjUb6JKIoai7/p\nORevtBTMBEuMv2WO1l0kffvxqzos73xI1YIDh7OHogUG92Pb0x8wBhtiidaw\ndG70mEvFDswHgyW3Ty3w34Otj2Cxh/B2TP6JlwCKTRKyncCuNIbRxg7Qw278\nd9E7Dkpv9kdnYDs/BiMvmQIzAnifjsP9hg2DGV+5wjd0RKnul0G/e6sqwUtA\nMHTl2WGoyEZGy3xPHtydWBFAkvTs8XeMVtYcSzdVojcFS/wnZdbOcI7Dlc6P\nhdFEXjd/7HSgt4+u2jdkjKzgVJFCnmVjx7H+YT/10Ncm+JrLO1OP0BR0zXk9\nXRu++x6hHrhTd6NXxqtgzk3EYG3yBUHGhLoO9zLC3Jw8VYKQ3oELN4mCjcpc\ndUnHjbOBXUIFcwJ3XNxGDR+M5t9bkiJiOEEPNsTPuraSzerDOUco0AoRW81o\nR+BMKWsxoNmKFuHmeE540p6b/fTd6v0Sfco0T+snniWd4pl4D5IulroCDJbH\ns34XwtNaqmxSjeyOfeU24CWP/jxd0St0KNyC1g/sKgQYfQTJYoSI3l+8S8EW\nHtWIOAIVxfw8exsGdnLzL79KlFqXsjG756t3976THE6cUFpfL/l2nZo2c7OU\nu9wL\r\n=5d3z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICbXuP6onko9c/By3U78eC+qxi6wHNnUrn55uRjeeXB+AiEAw+9Nc0MR+0Jqx0JLGvwh4RwfClJx+ISWD0PymDh7LJk="}],"size":3156,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-1.0.22-ci.5.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.22-ci.5_1562164087958_0.8400452492278652"},"_hasShrinkwrap":false,"publish_time":1562164088054,"_cnpm_publish_time":1562164088054,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}