{"name":"@mdx-js/tag","version":"1.0.0-alpha.5","description":"A fully-featured Markdown/MDX React component for ambitious projects","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":"2d6b7eed79928112910e073cfb953e8eaf55a989","readme":"# `@mdx-js/tag`\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.\nUseful with [MDX][].\n\n## Installation\n\n[npm][]:\n\n```sh\nnpm i -S @mdx-js/tag\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport {renderToString} from 'react-dom/server'\nimport {MDXTag} from '@mdx/tag'\n\nconst H1 = props => <h1 style={{color: 'tomato'}} {...props} />\n\nconsole.log(renderToString(<MDXTag name=\"h1\" children=\"Hello, world!\" />))\nconsole.log(renderToString(<MDXTag name=\"h1\" components={{h1: H1}} children=\"Hello, world!\" />))\n```\n\nYields:\n\n```html\n<h1>Hello, world!</h1>\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/tag@1.0.0-alpha.5","_nodeVersion":"11.6.0","_npmVersion":"lerna/3.13.1/node@v11.6.0+x64 (darwin)","dist":{"integrity":"sha512-jZP8I1AwuGjR7HryB3Cyq1cSxv3wq3fUM9f9fJIP85miDwwSGo9gWTrIhjKiDnPeUw1x18IxraGnkbtmfa6+Lg==","shasum":"617064a391c43bd3f70e11ea0874e2c95a91ca5a","tarball":"http://registry-npm.ywwl.com/@mdx-js/tag/download/@mdx-js/tag-1.0.0-alpha.5.tgz","fileCount":6,"unpackedSize":8234,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgr8LCRA9TVsSAnZWagAA9WwP/0kwJnGEjLnSh7pdacHP\nauYCPkudwGwVIoFK7fm/WlZbBHwStk70FKOIXYTUNfTldcri76sMlLST2BL7\nJp7nBASlLAWxd/QqcA8aw4MSanATbJagmfQ8QIGZgKkg76j0ez2ACb4g6Q9Z\n4A3FWN3fG57bO+tB1n938uqlu/oeOvp/f/LtF6I65zou5ye/f1mktsbn3/UI\nR86piBSo3JJvd+LXP2OAMQ0CFwOv0s1GTc+8siWn2jonTpdlRvsLzfrCDtGj\nJh9fsfDClStl8DUy+NEE2NIOg+16gF5Y45HZUhr+inXDLbtzxmEZKHrSvUZb\nyujqaBumIMzpwneJu6pdnZbZlI/Oi9W9HTSyhIdGZGIVCekpbyvQub5Y43yJ\nh1ke6j43IkS3WFFE+yFJzxyiIJh0chEdFl8mTFkFr/Wy0CsY2D39xdCnVBUn\nOduOD6kaSIQpBcf3N0V+hql4MPTjWlS3Y1oQ9AnG2Vs2QFQcbR6plctFMnOj\nFNkZJfJ1FXCTB7fi/oJrS6iWKVMmk5wacrN0YFcvCr9O3lzzOFi41A6ssnTw\nndweBAdfA66z33KcMPYn1Br73bqK6Cq3ISJcUUOQM4RMz+9Y6Eg/9t0jaeEX\nY4eaY0bbi1zo4FPM83JnEy5rYxB3O5gf6MowbxoylEZ3mwWwYJFCjRPUTO9t\n9GZ+\r\n=27Ls\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSj8N0sFiO9ulfx/OZ4GRnFDJi3yGWR/ty8jduODtXVgIgNaewRgE0FYjeJG8m6s2SCIUuThZNhZandPlST7z44tk="}],"size":3167,"noattachment":false,"key":"/@mdx-js/tag/-/@mdx-js/tag-1.0.0-alpha.5.tgz"},"maintainers":[{"email":"johnotander@gmail.com","name":"johno"},{"email":"johnotander+npm-johno-bot@gmail.com","name":"johno-bot"},{"email":"matija.marohnic@gmail.com","name":"silvenon"},{"email":"tim@timneutkens.nl","name":"timneutkens"}],"_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tag_1.0.0-alpha.5_1552072459082_0.2852139443620809"},"_hasShrinkwrap":false,"publish_time":1552072459223,"_cnpm_publish_time":1552072459223,"dist-tags":{"latest":"0.20.3","next":"1.0.0-alpha.6"}}