{"name":"@mdx-js/react","version":"2.0.0-next.4","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@vercel.com"},{"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"},{"name":"Christian Murphy","email":"christian.murphy.42@gmail.com"}],"license":"MIT","main":"dist/cjs.js","module":"dist/esm.js","types":"types/index.d.ts","keywords":["mdx","markdown","react","jsx","remark","mdxast"],"scripts":{"test-types":"dtslint types"},"peerDependencies":{"react":"^16.13.1"},"gitHead":"e1b45e365a1c3e13c680674a617ec0a17a1dc0df","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 [Vercel][]\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[vercel]: https://vercel.com\n[mdx]: https://github.com/mdx-js/mdx\n[npm]: https://docs.npmjs.com/cli/install\n","readmeFilename":"readme.md","_id":"@mdx-js/react@2.0.0-next.4","_nodeVersion":"14.4.0","_npmVersion":"lerna/3.22.1/node@v14.4.0+x64 (darwin)","dist":{"integrity":"sha512-A1PoXF4iPddlowtk+OcPRntePLh/y28mAtLQ2FIkpKW0LUTUEFqvP67lqm5kVzxmC10jqon+YQlN8AxoVBMA3w==","shasum":"09cee0a7f608e7c7b823e9dd25a5fe158f6e1689","tarball":"http://registry-npm.ywwl.com/@mdx-js/react/download/@mdx-js/react-2.0.0-next.4.tgz","fileCount":6,"unpackedSize":16831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGJBHCRA9TVsSAnZWagAAM2cP/3vLeeZj0e4814GLK47v\nnW8KI3Qvb+IUoud4rvS9fcOH/I/WRZ6TqGVobzcNnWbOlnenLHwaz0q3Z/Ir\nnazz1H9hp/+mmHHYpAlITAoCEdVCEhez3ZgsZhL1wi6XR9MuhhGtEfEoCPql\njCSogTUlPiNzSkOER0tSE+jC0qsxpZmoa0uGN5RLP+N4Df973VImjAGuZaeD\nChpWWXzQEqhIdXAPP5g7mbAs/zISS0a0R1kSQ8Przbk6nCRkUys8cfiE/f+S\nakC/bH5FiAu0BqLcQEHjELKi4/tAelmkssGP3TUwbGRV3QJrdABDmikvtXJr\ns44SR8ErKFnwDeW5kHXzBs7rhv4KxAjeER4tVljq+EMAbSWcV0SmrjKJ5MCR\nm2kqroFNbtTTvpFucwmfIq5H3mAOl8TWsvuAOUOC/a279/hvRnkEV+eanPGk\n0wxTTAQaGOGs43rWOMRi2GiMheCNZ4TBDdu2ufpsYZobkFSvTKNHCTniHmdC\nA3n9hu4WamsKraEYAMu+Vqd8br9Fgss6lMrpjbrqTqyL2DY9wYAOHpZndzBT\n9OKR9n+yCe6uqLUK4pZXW6WFL6kcJS0YOOSCtrUdrFpN+M7mznKd0IEiC9jS\n/ucKhpdBJ6iiRQA8SLLZ965Ig1B57FXT58rwGbpa2q6JLTqe69OdA1S3/1TQ\nslUL\r\n=ohRA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEFLsg9mVN9Wm11ZnVKQf3hAqDsHjcwbtn42EChqGjv5AiEA7c+NnwGrkn2WOLznzf4swKfAoq5D/sbtWFCqlkmXU5Y="}],"size":4397,"noattachment":false,"key":"/@mdx-js/react/-/@mdx-js/react-2.0.0-next.4.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_2.0.0-next.4_1595445319318_0.29538525726907294"},"_hasShrinkwrap":false,"publish_time":1595445319439,"_cnpm_publish_time":1595445319439,"dist-tags":{"ci":"2.0.0-ci.53","latest":"3.1.1","next":"2.0.0-rc.2"}}