{"_id":"remark-rehype-wrap","_rev":"4-3541470bb23252a014d89714ac6d2af9","name":"remark-rehype-wrap","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.1":{"name":"remark-rehype-wrap","version":"0.0.1","description":"Wrap `remark` or `rehype` subtrees in a new container node","author":{"name":"Brad Cornes"},"license":"MIT","homepage":"https://github.com/bradlc/remark-rehype-wrap#readme","repository":{"type":"git","url":"git+https://github.com/bradlc/remark-rehype-wrap.git"},"bugs":{"url":"https://github.com/bradlc/remark-rehype-wrap/issues"},"type":"module","main":"index.js","keywords":["mdx","remark","rehype"],"scripts":{"test":"node test.js"},"devDependencies":{"rehype":"^12.0.1","remark":"^14.0.2","remark-mdx":"^2.3.0","uvu":"^0.5.6"},"dependencies":{"unist-util-select":"^4.0.3"},"gitHead":"758931a2a1a7b835cb4316dd18e1a6b3ccd70e59","_id":"remark-rehype-wrap@0.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-epF8jgRTmjh+sCdrNP0nvb62ZlHENFWvFerwpkzDcKwuvDcINeu4UukPHDLSo1LvbDgnz9bdcLPQ3uuNEMtP3w==","shasum":"4e64abb7476660dc689e3864b88a8697801ced5d","tarball":"https://registry.npmjs.org/remark-rehype-wrap/-/remark-rehype-wrap-0.0.1.tgz","fileCount":4,"unpackedSize":6383,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYEHkDIbqxMwgU6IA6unXPIeiMaqNlUkeO1A5hXCJVKAiB4HKF+BxkwIzGPcQtLTZA+RDgbwNks3NK0SQP4ujXhGw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLc4SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpvA//d4gfW5LN3ccSD6coGiJSz298j6wUNeWTi2F2/3tDAyPd7JkN\r\nQbz9Y6kMfg71tky8D4yumMpeFoUBpH61ylzQ2BQZ3dEB8VpiQCFHnFTNVkIW\r\n36vSCTUHvgd+YWwCm2S1XmdIsY8WqCK2P3wjMTGpqq+dh0TPdke3CWyMksYB\r\n6FECMigSrUVf3aqScWtMV/TaZfhyHZTDPxiBamYF8Ncr7H6FyPbGtG8bUj6l\r\n3+9Gcz2F9WoFQQ1NNhkK8WhCWNCxe9j2Q2ie4ayuoPJgDVtPrNaCgzt5+Pb/\r\nOtNMUn5EI3/SOfly8fXXu0a4sBLQXNspOP1/Ca/5jMUzzGq3BGtdV6lv3xpl\r\nTOu6eP94X17Sr8k8Ua6PF8GfTHG+TNaI3J+Kw4lj9d6CXr0al1K2j4b9prXm\r\nKz/0+CzGOVFPo2MQBsBzwfw+aI/aC4P+jQ3CX9A/0N9OegH5MAkmcaiN6Bd8\r\nNpmHqW2kUEuZ2CguR0iSfIU1pfIGm+uyLgatic8W7PtEHoZnc2RZzChtEpig\r\n0QeHFg4vv1Q89MsP6yVadp0CUagBR4RXWw2V4tWfoq3UdFUmnI2QFef1wAP8\r\nh0j7NEEMiyhSHz3rzL7sKpS7TrxvzOzZs/enSEXiN3FbW2A49BRb9vBy4zhh\r\n2oCaksCxt5/RhO2rrOCP62oDVkQRrL4X8u8=\r\n=FmuM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bradlc","email":"bradlc41@gmail.com"},"directories":{},"maintainers":[{"name":"bradlc","email":"bradlc41@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-rehype-wrap_0.0.1_1680723474142_0.7346152476513259"},"_hasShrinkwrap":false},"0.0.2":{"name":"remark-rehype-wrap","version":"0.0.2","description":"Wrap `remark` or `rehype` subtrees in a new container node","author":{"name":"Brad Cornes"},"license":"MIT","homepage":"https://github.com/bradlc/remark-rehype-wrap#readme","repository":{"type":"git","url":"git+https://github.com/bradlc/remark-rehype-wrap.git"},"bugs":{"url":"https://github.com/bradlc/remark-rehype-wrap/issues"},"type":"module","main":"index.js","keywords":["mdx","remark","rehype"],"scripts":{"test":"node test.js"},"devDependencies":{"rehype":"^12.0.1","remark":"^14.0.2","remark-mdx":"^2.3.0","uvu":"^0.5.6"},"dependencies":{"unist-util-select":"^4.0.3"},"gitHead":"426f81b93f2eda269129b35616bf62196fe834c7","_id":"remark-rehype-wrap@0.0.2","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-pOR4Iq0BnmQ6xymO98sLmibkhf6q5CsTkz9OYoyJYtCbqzacj1JY7AEiEx4Tr5jIvLBZXtR/tyFi3FKK9ejSdQ==","shasum":"65204b163baf72d4883499f3e810e2dddae49d0d","tarball":"https://registry.npmjs.org/remark-rehype-wrap/-/remark-rehype-wrap-0.0.2.tgz","fileCount":4,"unpackedSize":6381,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBff/F7yTddb0B6TtGzNU9si/2MV8OoXbF1h987IWEHMAiByAYhOOJDEA/FmwxkXdum2LFT5jzUfOQm5QuTs92k6ZA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLc58ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrV2g//XF1/J+OctyYZxGOy5iGS3W5/TZX8bKHHpWnowTUDdAMoKhJ0\r\nYIzjtA1O/JFf+0xRde9Fb6IEuD8hj4flkUuvE+c9xsKB3m1YU5XQG9Rle5HQ\r\ntCRMlXmb3YNqiwvGbZNB5KEeRSplplYN5EqFwzsgoM8XdES2PkGHLZ9zhyWW\r\nNCYH5fVul2Wub2UXdYdXUryZY9M/RxqpEAbtnlwaqws+yYPvEH11Od4QLqSJ\r\nBuswg9k1e3fY03LmbehYFzlPax+HIYYqhL7rK49fytByZbFeFC3mfWF9Z39P\r\no5PHrY2kWhYTfnMv2hKn6T710TJC4M29bhnHlOIpabqsvFJBu/doQMqrbDJF\r\n/MXvOde7HPvoDutXTPl11g4Zddt7nV+GwU5KZY9QBPPM5V0SlZ1iMWEtWHWF\r\n6uuXmTdp5BCRkPXXXYbl9nuA9/SMolZx51hWxyuxSouq2F+iTD2LGk521as5\r\nNEMlaKuZlDyJTUfz+nCPEEs3cD8Mt4W5uX10oBpUyNRSiaD4QDTMe+Vgop77\r\nEqpEYFq2TBzeIKAHlIFmLeMzqGw6gMKKxT71eFlIMRwWcqj6jmAO6YBtYSbp\r\niVs+oF/ALHyUadZJRIYKkQPYpuqIKneTm/CCAqsij7NSQSxzMfurtjpcyfYj\r\nmHE/OQ9ENS+si6E3IFigWaR6ktXdT20J+YQ=\r\n=uQM0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bradlc","email":"bradlc41@gmail.com"},"directories":{},"maintainers":[{"name":"bradlc","email":"bradlc41@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-rehype-wrap_0.0.2_1680723579949_0.3617947803240409"},"_hasShrinkwrap":false},"0.0.3":{"name":"remark-rehype-wrap","version":"0.0.3","description":"Wrap `remark` or `rehype` subtrees in a new container node","author":{"name":"Brad Cornes"},"license":"MIT","homepage":"https://github.com/bradlc/remark-rehype-wrap#readme","repository":{"type":"git","url":"git+https://github.com/bradlc/remark-rehype-wrap.git"},"bugs":{"url":"https://github.com/bradlc/remark-rehype-wrap/issues"},"type":"module","main":"index.js","keywords":["mdx","remark","rehype"],"scripts":{"test":"node test.js"},"devDependencies":{"rehype":"^12.0.1","remark":"^14.0.2","remark-mdx":"^2.3.0","uvu":"^0.5.6"},"dependencies":{"unist-util-select":"^4.0.3"},"gitHead":"78e8bb851a85f1549a5e84018ba85a9bc32cd3a4","_id":"remark-rehype-wrap@0.0.3","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-hNZ7epC6wFvNWDyPFNTrMzhk7leJSnaGRYZ2y4/YDRalzA0M2jha27wBiKnIQvWGW8vn1bDmSYOAG2grs6uPog==","shasum":"8e7128c0d7f220dfde8aee421a6a7df01488d0d3","tarball":"https://registry.npmjs.org/remark-rehype-wrap/-/remark-rehype-wrap-0.0.3.tgz","fileCount":4,"unpackedSize":6187,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4kD+WcXnY95cIOZSdBnsiTG+xeIBOkdLgUV6khWuiwgIhAPxnQh+NrqSHnh4SaHPZj1BFIgYdLs8wn5zs9mEsBN0t"}]},"_npmUser":{"name":"bradlc","email":"bradlc41@gmail.com"},"directories":{},"maintainers":[{"name":"bradlc","email":"bradlc41@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-rehype-wrap_0.0.3_1688556596266_0.9721807311172925"},"_hasShrinkwrap":false},"0.0.4":{"name":"remark-rehype-wrap","version":"0.0.4","description":"Wrap `remark` or `rehype` subtrees in a new container node","author":{"name":"Brad Cornes"},"license":"MIT","homepage":"https://github.com/bradlc/remark-rehype-wrap#readme","repository":{"type":"git","url":"git+https://github.com/bradlc/remark-rehype-wrap.git"},"bugs":{"url":"https://github.com/bradlc/remark-rehype-wrap/issues"},"type":"module","main":"index.js","keywords":["mdx","remark","rehype"],"scripts":{"test":"node test.js"},"devDependencies":{"rehype":"^12.0.1","remark":"^14.0.2","remark-mdx":"^2.3.0","uvu":"^0.5.6"},"dependencies":{"unist-util-select":"^4.0.3"},"_id":"remark-rehype-wrap@0.0.4","gitHead":"6fc5d79608c1c2fd8d9ca781082ef537c1165fac","_nodeVersion":"18.18.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-i9DopvMlX/pJKuQQrc6AhTqZ3UTFf2qLZdShoYYF5+WHfwDJZGfgI8bkm1ZmJjy3FOnsbxgPkQjDbOsCpTpOQA==","shasum":"a3e248ab1061e0da3eb9bdb78ee5635c9a56b8b6","tarball":"https://registry.npmjs.org/remark-rehype-wrap/-/remark-rehype-wrap-0.0.4.tgz","fileCount":4,"unpackedSize":6199,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEcoffBjZK2khMP6/r4Map00n49iM2PvMys3ElqK5xW1AiBtPb6QfbGbwxtGVnO4xIlj8h9WLo6/ukpRSfYZVRB6UQ=="}]},"_npmUser":{"name":"bradlc","email":"bradlc41@gmail.com"},"directories":{},"maintainers":[{"name":"bradlc","email":"bradlc41@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-rehype-wrap_0.0.4_1711112869135_0.8085094061040479"},"_hasShrinkwrap":false},"0.0.5":{"name":"remark-rehype-wrap","version":"0.0.5","description":"Wrap `remark` or `rehype` subtrees in a new container node","author":{"name":"Brad Cornes"},"license":"MIT","homepage":"https://github.com/bradlc/remark-rehype-wrap#readme","repository":{"type":"git","url":"git+https://github.com/bradlc/remark-rehype-wrap.git"},"bugs":{"url":"https://github.com/bradlc/remark-rehype-wrap/issues"},"type":"module","main":"index.js","keywords":["mdx","remark","rehype"],"scripts":{"test":"node test.js"},"devDependencies":{"rehype":"^12.0.1","remark":"^14.0.2","remark-mdx":"^2.3.0","uvu":"^0.5.6"},"dependencies":{"unist-util-select":"^4.0.3"},"_id":"remark-rehype-wrap@0.0.5","gitHead":"a349efa8e382e66dc12d2dd092d75e21250b1852","_nodeVersion":"18.18.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Za005UA1YB7wqCGXO98NtJLZ1AmFg9Sol4YmIDiFcT70y9uVznygb+Cljb6QM6bnHquR5M2R8HEw/yoh6T0AmA==","shasum":"79be4e3c35e925977cc3d6103d9d3422011ad8c7","tarball":"https://registry.npmjs.org/remark-rehype-wrap/-/remark-rehype-wrap-0.0.5.tgz","fileCount":4,"unpackedSize":8480,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwk18sjRAaClP1iwUU/axD6TAh3xhBqUbFhWVyOrEHNAIgSjzle3evs6YlYsg+h04/PZ3zFS48mPlDszlyVMVJdiA="}]},"_npmUser":{"name":"bradlc","email":"bradlc41@gmail.com"},"directories":{},"maintainers":[{"name":"bradlc","email":"bradlc41@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-rehype-wrap_0.0.5_1714559416147_0.3089738916299638"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-05T19:37:54.141Z","0.0.1":"2023-04-05T19:37:54.300Z","modified":"2024-05-01T10:30:16.535Z","0.0.2":"2023-04-05T19:39:40.179Z","0.0.3":"2023-07-05T11:29:56.496Z","0.0.4":"2024-03-22T13:07:49.375Z","0.0.5":"2024-05-01T10:30:16.306Z"},"maintainers":[{"name":"bradlc","email":"bradlc41@gmail.com"}],"description":"Wrap `remark` or `rehype` subtrees in a new container node","homepage":"https://github.com/bradlc/remark-rehype-wrap#readme","keywords":["mdx","remark","rehype"],"repository":{"type":"git","url":"git+https://github.com/bradlc/remark-rehype-wrap.git"},"author":{"name":"Brad Cornes"},"bugs":{"url":"https://github.com/bradlc/remark-rehype-wrap/issues"},"license":"MIT","readme":"# remark-rehype-wrap\n\n> Wrap `remark` or `rehype` subtrees in a new container node.\n\n## Installation\n\n```\nnpm install remark-rehype-wrap\n```\n\n```js\nimport { remark } from 'remark'\nimport { remarkRehypeWrap } from 'remark-rehype-wrap'\n\nawait remark().use(remarkRehypeWrap).process('<p>Hello, world!</p>')\n```\n\n## Usage\n\nSee [`test.js`](https://github.com/bradlc/remark-rehype-wrap/blob/main/test.js) for usage examples.\n\n## Options\n\n### `options.node`\n\nA new node to use as the wrapper. e.g. `{ type: 'element', tagName: 'div' }`\n\n### `options.start`\n\nEither:\n\n- `string`: A node selector passed to [`unist-util-select`](https://github.com/syntax-tree/unist-util-select). Nodes matching the selector create a new wrapper section.\n- `{ selector: string, inclusive?: boolean, exclude?: string }`\n\n  | Property    | Description                                                                                                                                                                                         |\n  | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n  | `selector`  | A node selector passed to [`unist-util-select`](https://github.com/syntax-tree/unist-util-select). Nodes matching the selector create a new wrapper section.                                        |\n  | `inclusive` | Whether the start node should be included in the new wrapper section (`true`, default) or not (`false`).                                                                                            |\n  | `exclude`   | A node selector passed to [`unist-util-select`](https://github.com/syntax-tree/unist-util-select). Nodes matching the selector will not create a new wrapper section, even if they match `selector` |\n\n### `options.end` (optional)\n\nEither:\n\n- `string`: A node selector passed to [`unist-util-select`](https://github.com/syntax-tree/unist-util-select). Nodes matching the selector end the current wrapper section.\n- `{ selector: string, inclusive?: boolean, exclude?: string }`\n\n  | Property    | Description                                                                                                                                                                                            |\n  | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n  | `selector`  | A node selector passed to [`unist-util-select`](https://github.com/syntax-tree/unist-util-select). Nodes matching the selector end the current wrapper section.                                        |\n  | `inclusive` | Whether the end node should be included in the current wrapper section (`true`) or not (`false`, default).                                                                                             |\n  | `exclude`   | A node selector passed to [`unist-util-select`](https://github.com/syntax-tree/unist-util-select). Nodes matching the selector will not end the current wrapper section, even if they match `selector` |\n\nIf `end` is not defined then it is set to the same as `start`.\n\n### `options.transform` (optional)\n\nThe `transform` function is passed each new wrapper node and should return a node. See [`test.js`](https://github.com/bradlc/remark-rehype-wrap/blob/main/test.js#L76-L89) for an example.\n","readmeFilename":"README.md"}