{"_id":"remark-smartypants","_rev":"7-fc60e5e4cf305e895dc8698908704c18","name":"remark-smartypants","dist-tags":{"latest":"3.0.3"},"versions":{"2.0.0":{"name":"remark-smartypants","version":"2.0.0","keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"author":{"url":"https://silvenon.com","name":"Matija Marohnić","email":"matija.marohnic@gmail.com"},"license":"MIT","_id":"remark-smartypants@2.0.0","maintainers":[{"name":"silvenon","email":"matija.marohnic@gmail.com"}],"homepage":"https://github.com/silvenon/remark-smartypants#readme","bugs":{"url":"https://github.com/silvenon/remark-smartypants/issues","email":"matija.marohnic@gmail.com"},"dist":{"shasum":"836cff43ec139b2e5ec9e488d80596ed677d1cb2","tarball":"https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.0.0.tgz","fileCount":5,"integrity":"sha512-Rc0VDmr/yhnMQIz8n2ACYXlfw/P/XZev884QU1I5u+5DgJls32o97Vc1RbK3pfumLsJomS2yy8eT4Fxj/2MDVA==","signatures":[{"sig":"MEQCIAJRnYiuOjqfoVPlFA3Kn6mmjf6s8oh2t1vZ/9I/jTUEAiAvSe6BqwxUuvE4pNXuTud4HRSBOy0ZML1GWbY0LlSPAQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4386,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm+PxCRA9TVsSAnZWagAAZc4P/2SkEsQvrjS5ekDqo9Ux\nmTGn2MMgU75kQjKTornIlGBLBlDFjwGxu/rpAisnXUL8PQN8l1PC7Cu/NwSI\nU15+58YfCa+V87U0V6xtAyN9EshPPPuN5ZU4k4QJ3vSXwCmGFvsUjGA/SrQ/\no9QTGJBALPYfiq0s5Sw+/gEXgYPL5UaBJhJ7o7oC71tO0JnxDYeY8jajRca7\nBnMiG4jBz+sg+ZXTJDTHqO47sAN7rvfzrSQmuqB207eVEEitIc4YH55FpaVk\n+2QiogK8kA+ykofSmZY1zf9rYECMkWt8sV2ZbNETcmjPKu84LsismOhWf9WD\nxA/NqjIZnSEl7TARGjZdfd5Tmm4opkex2reGG9RyUyioDnjmL/dk1M8ynKtf\nTweJZaeHgVla1P0H8QFNtcMRLPFWL0Ty9l9I79UR7G5fkNsotp5xOzQ4+Ung\nMmlU+h1qdP+Kn28MXOmqSjv98YynnVRKQZCKClQSVG2r58OsL/6tD5iLcOWv\nvICbcfVVomTeVDshbcbWPnC1PwFaCqIOjaQdpk6xaHzDSLds0TuJNxf7PrrQ\n2G5/CaznMPpPmJn/p/NNteNks69dYwmzYINRYBl8rDKEO/SQGWoOCMYiTA1a\nQJLH33SwKz/ZcgDEY/tW5sQ15Zt3KLji3co2HZdrfOHlZWA7MGbAEOsQRwot\nOPYu\r\n=A5ak\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./index.d.ts","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","gitHead":"a6430cbb21fb633435ba7a1607c30c947bf4e07e","scripts":{"test":"cross-env NODE_OPTIONS=--experimental-vm-modules jest","prepare":"husky install","prepublishOnly":"npm test"},"_npmUser":{"name":"silvenon","email":"matija.marohnic@gmail.com"},"repository":{"url":"git+https://github.com/silvenon/remark-smartypants.git","type":"git"},"_npmVersion":"8.1.0","description":"remark plugin to implement SmartyPants","directories":{},"_nodeVersion":"16.13.0","dependencies":{"retext":"^8.1.0","unist-util-visit":"^4.1.0","retext-smartypants":"^5.1.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^27.3.1","husky":"^7.0.4","remark":"^14.0.2","prettier":"^2.4.1","cross-env":"^7.0.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-smartypants_2.0.0_1637606385480_0.05071034717134126","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"remark-smartypants","version":"2.1.0","keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"author":{"url":"https://silvenon.com","name":"Matija Marohnić","email":"matija.marohnic@gmail.com"},"license":"MIT","_id":"remark-smartypants@2.1.0","maintainers":[{"name":"silvenon","email":"matija.marohnic@gmail.com"}],"homepage":"https://github.com/silvenon/remark-smartypants#readme","bugs":{"url":"https://github.com/silvenon/remark-smartypants/issues","email":"matija.marohnic@gmail.com"},"dist":{"shasum":"afd26d8ff40def346c6516e38b46994449fb2efe","tarball":"https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-2.1.0.tgz","fileCount":5,"integrity":"sha512-qoF6Vz3BjU2tP6OfZqHOvCU0ACmu/6jhGaINSQRI9mM7wCxNQTKB3JUAN4SVoN2ybElEDTxBIABRep7e569iJw==","signatures":[{"sig":"MEUCIDmezJj4qeH5xkCbM1yn6jasuOdUsAvcK3PTX+z6H4lpAiEAlrfOt9x658vVZ5uxcM8E0tSmF5G5Zozwwq5Fu/TynXM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6064},"type":"module","types":"./index.d.ts","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","gitHead":"e2b1492731e3924a04e258d255a9613e045e82d7","scripts":{"test":"vitest run","setup":"npm install && simple-git-hooks","prepublishOnly":"npm test"},"_npmUser":{"name":"silvenon","email":"matija.marohnic@gmail.com"},"prettier":{},"repository":{"url":"git+https://github.com/silvenon/remark-smartypants.git","type":"git"},"_npmVersion":"10.2.4","description":"remark plugin to implement SmartyPants","directories":{},"nano-staged":{"*.{js,ts,json}":["prettier --write"]},"_nodeVersion":"21.5.0","dependencies":{"retext":"^8.1.0","unist-util-visit":"^5.0.0","retext-smartypants":"^5.2.0"},"_hasShrinkwrap":false,"devDependencies":{"remark":"^14.0.3","vitest":"^1.1.2","prettier":"^3.1.1","nano-staged":"^0.8.0","simple-git-hooks":"^2.9.0"},"simple-git-hooks":{"pre-push":"npm test","pre-commit":"npx nano-staged"},"_npmOperationalInternal":{"tmp":"tmp/remark-smartypants_2.1.0_1704408037785_0.5946307332819305","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"remark-smartypants","version":"3.0.0","keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"author":{"url":"https://silvenon.com","name":"Matija Marohnić","email":"matija.marohnic@gmail.com"},"license":"MIT","_id":"remark-smartypants@3.0.0","maintainers":[{"name":"silvenon","email":"matija.marohnic@gmail.com"}],"homepage":"https://github.com/silvenon/remark-smartypants#readme","bugs":{"url":"https://github.com/silvenon/remark-smartypants/issues","email":"matija.marohnic@gmail.com"},"dist":{"shasum":"5ada743b82360e35da449c11006eacd6b4c32997","tarball":"https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-3.0.0.tgz","fileCount":6,"integrity":"sha512-6/xo47aZxWJd1L6VsDWX5EJRtRC2X0+vBRVh6MPD1doayFC6VRrxez6Z8GcEDqznvf9Ly+EtpasNYQptyhy8nQ==","signatures":[{"sig":"MEUCIQCY8DeZp90u6Kk6ReksWrXaZsgWoHwq31YFFQYTNJEi/AIge6MfNLmQT9sKDOUIzf5k00Xm0+UCmqsEetkaTvP+xHw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20061},"type":"module","types":"./dist/plugin.d.ts","engines":{"node":">=16.0.0"},"exports":"./dist/plugin.js","gitHead":"b6fabb455f85b0f643ed6d144d76836379c947aa","scripts":{"test":"vitest run","build":"tsc --build","prepublishOnly":"npm test && npm run build"},"_npmUser":{"name":"silvenon","email":"matija.marohnic@gmail.com"},"repository":{"url":"git+https://github.com/silvenon/remark-smartypants.git","type":"git"},"_npmVersion":"10.5.0","description":"remark plugin to implement SmartyPants","directories":{},"_nodeVersion":"21.7.3","dependencies":{"retext":"^9.0.0","unified":"^11.0.4","unist-util-visit":"^5.0.0","retext-smartypants":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"remark":"^15.0.1","vitest":"^1.5.0","lefthook":"^1.6.10","prettier":"^3.2.5","remark-mdx":"^3.0.1","typescript":"^5.4.5","@types/unist":"^3.0.2","unist-util-is":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/remark-smartypants_3.0.0_1713214559119_0.7595276426058195","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"remark-smartypants","version":"3.0.1","keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"author":{"url":"https://silvenon.com","name":"Matija Marohnić","email":"matija.marohnic@gmail.com"},"license":"MIT","_id":"remark-smartypants@3.0.1","maintainers":[{"name":"silvenon","email":"matija.marohnic@gmail.com"}],"homepage":"https://github.com/silvenon/remark-smartypants#readme","bugs":{"url":"https://github.com/silvenon/remark-smartypants/issues","email":"matija.marohnic@gmail.com"},"dist":{"shasum":"44171381842f0b7ecba296340925b588aa9991a3","tarball":"https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-3.0.1.tgz","fileCount":5,"integrity":"sha512-qyshfCl2eLO0i0558e79ZJsfojC5wjnYLByjt0FmjJQN6aYwcRxpoj784LZJSoWCdnA2ubh5rLNGb8Uur/wDng==","signatures":[{"sig":"MEUCIEy4+jBMpcu7zCW0x0L+poudPe7XfxcwQFV9RTBSy9obAiEAqf0CImupbTUuzudQ4moThdDdzvwHyvvOUkWXC3R/z9A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6434},"type":"module","types":"./dist/plugin.d.ts","engines":{"node":">=16.0.0"},"exports":"./dist/plugin.js","gitHead":"94e4aa24c467fe161559303b5988613c604ecff4","scripts":{"test":"vitest run","build":"tsc --build","prepublishOnly":"npm test && npm run build"},"_npmUser":{"name":"silvenon","email":"matija.marohnic@gmail.com"},"repository":{"url":"git+https://github.com/silvenon/remark-smartypants.git","type":"git"},"_npmVersion":"10.2.4","description":"remark plugin to implement SmartyPants","directories":{},"_nodeVersion":"20.11.1","dependencies":{"retext":"^9.0.0","unified":"^11.0.4","unist-util-visit":"^5.0.0","retext-smartypants":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"remark":"^15.0.1","vitest":"^1.5.0","lefthook":"^1.6.10","prettier":"^3.2.5","remark-mdx":"^3.0.1","typescript":"^5.4.5","@types/unist":"^3.0.2","unist-util-is":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/remark-smartypants_3.0.1_1714035125878_0.14205202445901421","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"remark-smartypants","version":"3.0.2","keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"author":{"url":"https://silvenon.com","name":"Matija Marohnić","email":"matija.marohnic@gmail.com"},"license":"MIT","_id":"remark-smartypants@3.0.2","maintainers":[{"name":"silvenon","email":"matija.marohnic@gmail.com"}],"homepage":"https://github.com/silvenon/remark-smartypants#readme","bugs":{"url":"https://github.com/silvenon/remark-smartypants/issues","email":"matija.marohnic@gmail.com"},"dist":{"shasum":"cbaf2b39624c78fcbd6efa224678c1d2e9bc1dfb","tarball":"https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-3.0.2.tgz","fileCount":5,"integrity":"sha512-ILTWeOriIluwEvPjv67v7Blgrcx+LZOkAUVtKI3putuhlZm84FnqDORNXPPm+HY3NdZOMhyDwZ1E+eZB/Df5dA==","signatures":[{"sig":"MEQCIE2Jsjqw6NqQ2zooibTCPrboL4W7eLzD8ko/6ul/8ITjAiAtBa/ivDegfeEHgW0JQE+afd6VoIxmIcdgOnDMErM7+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7042},"type":"module","types":"./dist/plugin.d.ts","engines":{"node":">=16.0.0"},"exports":"./dist/plugin.js","gitHead":"a38721d2dd8eb743e6b9c804bdc1f02c72d7536d","scripts":{"test":"vitest run","build":"tsc --build","prepublishOnly":"npm test && npm run build"},"_npmUser":{"name":"silvenon","email":"matija.marohnic@gmail.com"},"repository":{"url":"git+https://github.com/silvenon/remark-smartypants.git","type":"git"},"_npmVersion":"10.8.1","description":"remark plugin to implement SmartyPants","directories":{},"_nodeVersion":"22.4.1","dependencies":{"retext":"^9.0.0","unified":"^11.0.4","unist-util-visit":"^5.0.0","retext-smartypants":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"remark":"^15.0.1","vitest":"^1.5.0","lefthook":"^1.6.10","prettier":"^3.2.5","remark-mdx":"^3.0.1","typescript":"^5.4.5","@types/unist":"^3.0.2","unist-util-is":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/remark-smartypants_3.0.2_1720467841265_0.8785368492072405","host":"s3://npm-registry-packages"}},"3.0.3":{"name":"remark-smartypants","description":"remark plugin to implement SmartyPants","version":"3.0.3","license":"MIT","exports":"./dist/plugin.js","types":"./dist/plugin.d.ts","type":"module","engines":{"node":">=16.0.0"},"repository":{"type":"git","url":"git+https://github.com/silvenon/remark-smartypants.git"},"author":{"name":"Matija Marohnić","email":"matija.marohnic@gmail.com","url":"https://silvenon.com"},"homepage":"https://github.com/silvenon/remark-smartypants#readme","bugs":{"url":"https://github.com/silvenon/remark-smartypants/issues","email":"matija.marohnic@gmail.com"},"keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"scripts":{"test":"vitest run","build":"tsc --build","prepublishOnly":"npm test && npm run build"},"dependencies":{"retext":"^9.0.0","retext-smartypants":"^6.0.0","unified":"^11.0.4","unist-util-visit":"^5.0.0"},"devDependencies":{"@types/unist":"^3.0.2","lefthook":"^1.6.10","prettier":"^3.2.5","remark":"^15.0.1","remark-gfm":"^4.0.1","remark-mdx":"^3.0.1","typescript":"^5.4.5","unist-util-is":"^6.0.0","vitest":"^1.5.0"},"allowScripts":{"esbuild@0.21.5":true,"fsevents@2.3.3":true,"lefthook@1.6.10":true},"gitHead":"a7a30398af761cafce6b1b2372f7eaf428db3908","_id":"remark-smartypants@3.0.3","_nodeVersion":"22.23.1","_npmVersion":"12.0.1","dist":{"integrity":"sha512-gCaK+ndZ0hYezlqFegHFCVh2CQemsi0Npdh1qVM9bxlUFknjkbP6VmojWhddOCrbK0PbbacmYLWfTULRiT1eWA==","shasum":"32b4f20b466d16b3c2f4cc77f31019270ea97a6b","tarball":"https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-3.0.3.tgz","fileCount":5,"unpackedSize":7648,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGYJbuaObizigekUY+SFQ2kZeM2rLCwEAc/0QtvLGMcnAiEA+mNEOCbddIRj6pMgXRtMnHnex7nenK6vaPvoPZeBNOo="}]},"_npmUser":{"name":"silvenon","email":"matija.marohnic@gmail.com"},"directories":{},"maintainers":[{"name":"silvenon","email":"matija.marohnic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/remark-smartypants_3.0.3_1784885251289_0.6344154315810051"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-22T18:39:45.479Z","modified":"2026-07-24T09:27:31.554Z","2.0.0":"2021-11-22T18:39:45.634Z","2.1.0":"2024-01-04T22:40:37.930Z","3.0.0":"2024-04-15T20:55:59.261Z","3.0.1":"2024-04-25T08:52:06.078Z","3.0.2":"2024-07-08T19:44:01.411Z","3.0.3":"2026-07-24T09:27:31.420Z"},"bugs":{"url":"https://github.com/silvenon/remark-smartypants/issues","email":"matija.marohnic@gmail.com"},"author":{"name":"Matija Marohnić","email":"matija.marohnic@gmail.com","url":"https://silvenon.com"},"license":"MIT","homepage":"https://github.com/silvenon/remark-smartypants#readme","keywords":["unified","remark","remark-plugin","smartypants","punctuation","typography","smart"],"repository":{"type":"git","url":"git+https://github.com/silvenon/remark-smartypants.git"},"description":"remark plugin to implement SmartyPants","maintainers":[{"name":"silvenon","email":"matija.marohnic@gmail.com"}],"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().use(smartypants).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: [smartypants],\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"}