{"_id":"@davidcelis/remark-smartypants","name":"@davidcelis/remark-smartypants","dist-tags":{"latest":"2.1.0"},"versions":{"2.1.0":{"name":"@davidcelis/remark-smartypants","description":"remark plugin to implement SmartyPants","version":"2.1.0","license":"MIT","exports":"./index.js","types":"./index.d.ts","type":"module","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"repository":{"type":"git","url":"git+https://github.com/davidcelis/remark-smartypants.git"},"author":{"name":"David Celis","email":"me@davidcel.is","url":"https://davidcel.is"},"contributors":[{"name":"Matija Marohnić","email":"matija.marohnic@gmail.com","url":"https://silvenon.com"},{"name":"David Celis","email":"me@davidcel.is","url":"https://davidcel.is"}],"homepage":"https://github.com/davidcelis/remark-smartypants#readme","bugs":{"url":"https://github.com/davidcelis/remark-smartypants/issues","email":"me@davidcel.is"},"keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"scripts":{"prepare":"husky install","test":"cross-env NODE_OPTIONS=--experimental-vm-modules jest","prepublishOnly":"npm test"},"dependencies":{"retext":"^8.1.0","@davidcelis/retext-smartypants":"^5.3.0","unist-util-visit":"^4.1.0"},"devDependencies":{"cross-env":"^7.0.3","husky":"^7.0.4","jest":"^27.3.1","prettier":"^2.4.1","remark":"^14.0.2"},"gitHead":"bc25ee41f79b88ba007b95ad988f003126b3c039","_id":"@davidcelis/remark-smartypants@2.1.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-h0AaICBTicEbS3LMSaKntTkQ+BZMf1VVUXCzxmSI0I0i7tNraQVm8i5Q1pY6exnHzpurzPH9unsbNIQqvcG6VA==","shasum":"ef890e1f59ef3843cf129a79d6f0ba84dc96434e","tarball":"https://registry.npmjs.org/@davidcelis/remark-smartypants/-/remark-smartypants-2.1.0.tgz","fileCount":5,"unpackedSize":5065,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3U2/8kCIouMSF1Eld/aN8Nm8Rz9jDkPNFc6aWGQ3g3AiAq186okviSP7FvQMzuYLvf1LAFMpcGMX90ojadizsU/Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3p0QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1GA/+IdbrPXSmV2+WaXvh7jQYCqWK0AZdqMIcThh8Z4cPBvHCa7D0\r\nBqIyaKA1UBRyhNZKkMTQ8f3Gsn53bBcAmT9CXbRGBL6HcaRkhJgE7IMx7GGU\r\no1q6n7SlCF/RMdwm+ZjGDf5ZDRKHVZB6hrmdNmR04JCpSg7I8SfqkXIwlVFk\r\n9VpppfPgXQJOYVs6NdNeYySI5ScAJdwma5O10mkoMC8RPBAjktE76b6oeqVW\r\nXi9nUrjD/HcddvbwfUEjZh3RFwFPaNQNlqVgYAAEInpdDhoQoHOG7xLTWQvZ\r\nmsFaX3jE+Y4YEyD4YoXxcYoXeSDZbaefYcCROp2Y/hOV3zcP/PYHjKJmEXbq\r\nWOGFWYdah7nQOvZVJ6e1sLx8z1wx7vh1HRyqjIw8GC1ZkE0+RJvfgUi4RhES\r\n2TZhIsZVESQahxnDOJ2C0hdqALGXXhoTv6IVE31E7bNRbAGRjJ5F+gsXQaUA\r\njZNm9q8dDmQu+tENnsqnhNySP2QE7DG3QH9iaiSWb9TVza4kVEpcmPzSKugf\r\nxOZbeusv65FQGih6UkHw7i1sEJL4w12nZrFQlssS2ic1pD+LxSlOI6sy2FpA\r\nr+6pNnSOqKaPNaKpXKqMLxLtjaRzVXMfASeC0ABuJ91AqNCu20LTU9V/FD8T\r\ndJ5mCMcdegroVuIaCAKZ4pcy9DHx+dbuAH0=\r\n=iScl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"davidcelis","email":"me@davidcel.is"},"directories":{},"maintainers":[{"name":"davidcelis","email":"me@davidcel.is"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-smartypants_2.1.0_1675533584382_0.2083351312419206"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-04T17:59:44.316Z","2.1.0":"2023-02-04T17:59:44.576Z","modified":"2023-02-04T17:59:44.695Z"},"maintainers":[{"name":"davidcelis","email":"me@davidcel.is"}],"description":"remark plugin to implement SmartyPants","homepage":"https://github.com/davidcelis/remark-smartypants#readme","keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"repository":{"type":"git","url":"git+https://github.com/davidcelis/remark-smartypants.git"},"contributors":[{"name":"Matija Marohnić","email":"matija.marohnic@gmail.com","url":"https://silvenon.com"},{"name":"David Celis","email":"me@davidcel.is","url":"https://davidcel.is"}],"author":{"name":"David Celis","email":"me@davidcel.is","url":"https://davidcel.is"},"bugs":{"url":"https://github.com/davidcelis/remark-smartypants/issues","email":"me@davidcel.is"},"license":"MIT","readme":"# remark-smartypants\n\n[![package version](https://badgen.net/npm/v/remark-smartypants)][npm]\n[![number of downloads](https://badgen.net/npm/dt/remark-smartypants)][npm]\n\n[remark] plugin to implement [SmartyPants]. Now with 100% more ESM!\n\n## Installing\n\n```sh\n# using npm\nnpm install remark-smartypants\n\n# using yarn\nyarn add remark-smartypants\n```\n\n## Usage\n\nExample using [remark]:\n\n```js\nimport remark from 'remark'\nimport smartypants from 'remark-smartypants'\n\nconst result = await remark()\n  .use(smartypants)\n  .process('# <<Hello World!>>')\n\nconsole.log(String(result))\n// # «Hello World!»\n```\n\nI created this plugin because I wanted to add SmartyPants to [MDX]:\n\n```js\nimport mdx from '@mdx-js/mdx'\nimport smartypants from 'remark-smartypants'\n\nconst result = await mdx('# ---Hello World!---', {\n  remarkPlugins: [\n    smartypants,\n  ],\n})\n```\n\nNote that angle quotes in the former example (`<<...>>`) are probably impossible in MDX because there they are invalid syntax.\n\nThis plugin uses [retext-smartypants](https://github.com/retextjs/retext-smartypants) under the hood, so it takes the same options:\n\n```js\nconst result = await remark()\n  .use(smartypants, { dashes: 'oldschool' })\n  .process('en dash (--), em dash (---)')\n```\n\n## License\n\n[MIT License, Copyright (c) Matija Marohnić](./LICENSE)\n\n[npm]: https://www.npmjs.com/package/remark-smartypants\n[remark]: https://remark.js.org\n[SmartyPants]: https://daringfireball.net/projects/smartypants\n[MDX]: https://mdxjs.com\n","readmeFilename":"readme.md"}