{"_id":"remark-sectionize","_rev":"6-4d9906a59f4fd1f9d39fe7c386cc52c7","name":"remark-sectionize","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"remark-sectionize","version":"1.0.0","author":{"name":"Jake Low","email":"hello@jakelow.com"},"license":"MIT","_id":"remark-sectionize@1.0.0","maintainers":[{"name":"jake-low","email":"hello@jakelow.com"}],"homepage":"https://github.com/jake-low/remark-sectionize#readme","bugs":{"url":"https://github.com/jake-low/remark-sectionize/issues"},"dist":{"shasum":"527b74d7e822c823756148d900301e02a3cf3953","tarball":"https://registry.npmjs.org/remark-sectionize/-/remark-sectionize-1.0.0.tgz","fileCount":5,"integrity":"sha512-2LMgmbwCSRinjkOkDh4I/dAEBRwsOm9x8sPMULHOPdGMGo0hnHxrN0B0BsocixbpLEfKbFn5nsSROVMKw7/WtQ==","signatures":[{"sig":"MEUCIQCQgDx9yLSqhcaYOFiE1B7M8y1uaVaaTKX/J0nG/5zuLAIgRZPs31YRoyxUn8fIhP5RpFMzGp7cnqD4y3+ZUKnZMTU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8264,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVU0LCRA9TVsSAnZWagAAIEkP/RlPFld7pud6nutaCszF\nTRQ339OKtZvwHfPntoB2jXO7F9vLRzPtD/HgSIGZh4W9uRKkLPlDYLfFz9qZ\ny+xfp9+xZlI9dbTuOcP2xRd8z9A7pko3EQCiP3FMkvb2Ez5iUfv4gjc3bg4A\n7sT83QxAQW8m/5S5h8/xmVbaV16H20OKeb5mbTBdenCvOv0DcLXl/HYUiG00\nw2IHlH8fD/EH8WYi+jFRjlT7KQRqcuZew4J5ejL/vChLHJd5vIJU5jozhK+E\nD25O/pZJKo17onsFWDR/sDvioV0pdDpt29PHw9+EpYjgTgKimj6yIVOmZhLC\nABlL6cRvZYsTGQWL51Us7Qjs0t5myIWb9FZNPmGYoiscOORmcSCfD2WqlNYx\nWX7eyQnsdJjtZS7DJdyBJTaLT+8d8UNubf+4ScOsdM5hI1sbs8kLVXQ1g0M8\noZMuGfFKDz5nw3+alN5nnwy01wg+0O/F8Z/4u57y1xizn+Pt5AZqgK6N2pCD\nxLAQPwCtNW57jsRHTq5x42+56ZaCbNmcyxl6VSb7fSOn69qHEgeeRnGPVxs+\nhGe/T6MFh5w2Y+fi6lQnGLiqYewl3+2tOqZpsAnr+phiVL/FD3ehB6up+WfN\nM+BI0gi7rVMdPxenYnfWHQQQLHep/6OQ9PicGgD+xB3WR064oGazwZq1iG7O\ncn7G\r\n=8mVD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"5f678c6c10b6478071d333cd5216278c82fb9014","private":false,"scripts":{"test":"node test.js"},"_npmUser":{"name":"jake-low","email":"hello@jakelow.com"},"repository":{"url":"git+https://github.com/jake-low/remark-sectionize.git","type":"git"},"_npmVersion":"6.4.1","description":"Wrap content below each heading in a <section> element","directories":{},"_nodeVersion":"10.14.0","dependencies":{"unist-util-find-after":"^2.0.2","unist-util-visit-parents":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.2","dedent":"^0.7.0","remark":"^10.0.1","unist-builder":"^1.0.3","unist-util-remove-position":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/remark-sectionize_1.0.0_1549094154669_0.3749859082377418","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"remark-sectionize","version":"1.0.1","keywords":["remark","plugin","markdown","html","section"],"author":{"name":"Jake Low","email":"hello@jakelow.com"},"license":"MIT","_id":"remark-sectionize@1.0.1","maintainers":[{"name":"jake-low","email":"hello@jakelow.com"}],"homepage":"https://github.com/jake-low/remark-sectionize#readme","bugs":{"url":"https://github.com/jake-low/remark-sectionize/issues"},"dist":{"shasum":"9116d892eefd4a625e7ab9858e2dd217cdb685ac","tarball":"https://registry.npmjs.org/remark-sectionize/-/remark-sectionize-1.0.1.tgz","fileCount":5,"integrity":"sha512-C8lBqGI2p70tRCW0ZKSrTDDDjANVL/m0LzXG9b88VQo9x6828eK5m/YpHGxtojeHnIfPc5J/EABusMYOxQMxJQ==","signatures":[{"sig":"MEYCIQCmR2gWVNbDVOyLkdIoc/uj5iIY0az2kTcIECz2702dYAIhALtR0ytR8J0BfwJ28ltQDapQ9ZdvW1vwnIJD+Jfckw9U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8355,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVU68CRA9TVsSAnZWagAA5HoQAKNkXXYa9JuDezUEViak\nd02+W/3qOeghI+R3axLtDAe3fvjeI1k1QLd8p7mvNOrU17nB+hWl0bgsYkq6\nuIM+vj0Y6WHtlmreOfRANdw2qprL7ZN05SmW4r+xJi76fLp5KnK/lVp+SQI6\nKhwnB/bokQUF9JGBekQROTFg0KO8IhTShwSilExAeeXMdJwuEib3tH9z68dq\nHU5hyBVY+e5OxkKllweMSxz/O30K+XDZTZO9/aDD/KZEpir7323mtCEF4end\nONZsnZqPblV+oj0Nk4H9Qh9a8T/DN11/ryq/HRZEQRzN3d9zCYuBcFVMMK8m\nalcAX1TrrsXsHtdpdzmLtvr66UKGLs/mw8wbk7r/oQgmJ7oUD3LE3TuC4GX+\nUw1kGqhzWzY3yED0+ZkSniufi0q7G+XvqnOTbSeccWgdossXGv0ZFseil8EO\nuFx61XPLPF4JQgkmQVoJm9UFhAou0h93pKLv+/UNqR1Ta/erANESp6JIwOWp\nXgMgxCIRH4sZPiF6lIBvxTwo/6re2H0R2NW/iYo+7SBycD1xvQ+dU+AzZow5\nD6RalLeokJA2b6CoiyHCQ9JbSCYOotZha9iTRA+ruOaN05VhkntOBc/2CDYC\n2CEJQFgA5wILqWnf31/d1AQ5YC7H9Ge7eGhBN6o119DaIQcwSlvtCKmGOizp\nD+bM\r\n=184p\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"15ff32b88d4e60bb0d255d57d79e83e1af90207e","private":false,"scripts":{"test":"node test.js"},"_npmUser":{"name":"jake-low","email":"hello@jakelow.com"},"repository":{"url":"git+https://github.com/jake-low/remark-sectionize.git","type":"git"},"_npmVersion":"6.4.1","description":"Wrap content below each heading in a <section> element","directories":{},"_nodeVersion":"10.14.0","dependencies":{"unist-util-find-after":"^2.0.2","unist-util-visit-parents":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.2","dedent":"^0.7.0","remark":"^10.0.1","unist-builder":"^1.0.3","unist-util-remove-position":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/remark-sectionize_1.0.1_1549094587778_0.40096038005361767","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"remark-sectionize","version":"1.1.0","keywords":["remark","plugin","markdown","html","section"],"author":{"name":"Jake Low","email":"hello@jakelow.com"},"license":"MIT","_id":"remark-sectionize@1.1.0","maintainers":[{"name":"jake-low","email":"hello@jakelow.com"}],"homepage":"https://github.com/jake-low/remark-sectionize#readme","bugs":{"url":"https://github.com/jake-low/remark-sectionize/issues"},"dist":{"shasum":"80fbb2a431b0970aea99937de905f4968c724fb7","tarball":"https://registry.npmjs.org/remark-sectionize/-/remark-sectionize-1.1.0.tgz","fileCount":6,"integrity":"sha512-/oHor2Fjn5/BtO4QcoBYjRpohq2+IgjYXc5YmpKv5EEy2rDAUfNi04yFGIK2vApiYasSIG6g1e0DDM/0g7gRKw==","signatures":[{"sig":"MEUCIFQR8Jpcj9wHadc7q1CJW7cmvyCTH/ahrsspJAHUNx7jAiEA68SnWkcLSOkffJYLhe64RRp2Rb9AdYZtwPZ4dMrh+9A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9442,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZdyGCRA9TVsSAnZWagAAl5UP/0UD/KTcBwARgT5ErJ00\nG54zAXi2m+l71tF7IBRtH1ligg0YlQsI9oEc8vdbY5a+Lv+juh0dYqhv4ulI\n26zgdlZjLaxWaYrXbbhTDsyixDaopTW70oHTAbi2hm7xbD92EKepJk9WnxAF\n8KWtupe4mwZ5GYXfgdUI36WmMnbwuUaI2ZWr8GJq8MwIHyuTu5DLSIOmuKAp\nLtmynFcrlKZMnptvK6911H1QaMl7h4z1Os8DmbNRcUNtfHTqHwaXNAsCNxqe\nAS6OU2ZDNYs5m/ljy4DcrQCsnz63icAfjvi1tEFwD5VeqJe+moAuRtJdNhc9\nVYhjQkI1BvqYLz4KqMjKpA86y2bwE0GmQgAatOuQ2tlYO+Sd06qo04YnN/zG\nDlg8ZXJcCU0LD6YGUoXVG01Mwo0eKFmJxY7ZCCm4pBIaKh8XBP7d3x50YV/V\nNirngMtIfW71z6SHW1yvKmucoK0oAq5kUDr2ztfzAEZWA9C3qMdr6/m3QoDm\ndqe8khODpwhL3RLfVXejq4IgXwfEpkvL9iMbQtYPBXuDk9PIwDSLPZziN46y\nddGRM2ltzFsG5S9CfBfByKZyo/rHE0yOyRiXPZwaOmZlOPKhKBPtoYcdNwRl\nmJll/XdnyoznW/xHusZmv1hEeBC8mdv2PBQcipw0kawZaEzOvyyLaO3hWuSM\nYr9Q\r\n=kq1A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"a90d9be95d5afead2b8cdcbe73908278a68cf508","private":false,"scripts":{"test":"node test.js"},"_npmUser":{"name":"jake-low","email":"hello@jakelow.com"},"repository":{"url":"git+https://github.com/jake-low/remark-sectionize.git","type":"git"},"_npmVersion":"6.4.1","description":"Wrap content below each heading in a <section> element","directories":{},"_nodeVersion":"10.14.0","dependencies":{"unist-util-find-after":"^2.0.2","unist-util-visit-parents":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.2","dedent":"^0.7.0","remark":"^10.0.1","unist-builder":"^1.0.3","unist-util-remove-position":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/remark-sectionize_1.1.0_1566956678256_0.49530652726870783","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"remark-sectionize","version":"1.1.1","keywords":["remark","plugin","markdown","html","section"],"author":{"name":"Jake Low","email":"hello@jakelow.com"},"license":"MIT","_id":"remark-sectionize@1.1.1","maintainers":[{"name":"jake-low","email":"hello@jakelow.com"}],"homepage":"https://github.com/jake-low/remark-sectionize#readme","bugs":{"url":"https://github.com/jake-low/remark-sectionize/issues"},"dist":{"shasum":"68d5267938e2a83ecfa32c933913a2bb139d0dd3","tarball":"https://registry.npmjs.org/remark-sectionize/-/remark-sectionize-1.1.1.tgz","fileCount":6,"integrity":"sha512-++GBmbsoeQrMBWn6jf3mj0bRq3DR8LnQPJo7u5faQ9JAJ5GeAu2uve8NoW+vgvhnuAv0GYS8hGb2+kqa+8mnpg==","signatures":[{"sig":"MEUCIHfZla99Q7cRlJkN/m3b7fwi+uJ26n4a+7Gn2uSWsWuzAiEArm9+gKP7PgIr8ymvYpxyxxL11/HzH/r0nca/yJqdpbE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRgIeCRA9TVsSAnZWagAAZl8P/3iSUQUo2ZrmR3eWLkJu\nwfp8qh4k0qPqnRLDKaXWnBvoAx9P+k/7Q/lhJlKTp7ftjLl5wwLCgtHn9s0M\nzB2msOmHODUztyvP2t7oPsTAKw1eWPyZN1vkv+BgSedZ3fwqw7j3eWUQQkZ4\nOIYVyKxVyt2FA6u0KsylU26xaj/eguokmfCiszD4s66O5T1Czy8/xtqd6Iqm\njZFaFWbCAeyrS6m1AB9Eo9an0v6gXqdUOnmsI+g2whA3chcDllc4ovxGL/im\nHHWvfU38P0OEnUcYRRAYk560m+XZAFUE/8YzR/FS77yAXBkOizM+7BwEo+r4\n90dzEAFxxGarziQ+G1WsE2EETrfXPbv9hOy3H2+H98ZTeMbLXnmBZUmA9Vb6\nF4OQRDTVXXkfnZHmoGV8lEc0MdpJvzY6UYgIbStiUPBn1eFq8MbA3rjTP3IS\nfPbYoRA3NyUXFw5jTo6fhFtM/nUQrl/O+7UlnZiE7SNr3+2XkIYCqe14CT6o\nNuwb5uN1tLb5Z3TanpUjuyLN3vg1L9Kw9gGInLDHUnDDxmzgwgvMLt3PVL/b\nVIvMZeEO2FwwPNTO4aDUwRwtPcsZbqHH9JsFRipgRUREprZxZjQpvTWlwBsp\ndfQ8pZ6gQKI1EID4Xoi4MNjeef7ZyfVb60mQfZXCka0KL6VqkNGB58VzGtxK\nvE3Z\r\n=4pmT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"6ed124d0725b91bbf30467ed6771842faf75d4e9","private":false,"scripts":{"test":"node test.js"},"_npmUser":{"name":"jake-low","email":"hello@jakelow.com"},"repository":{"url":"git+https://github.com/jake-low/remark-sectionize.git","type":"git"},"_npmVersion":"6.10.2","description":"Wrap content below each heading in a <section> element","directories":{},"_nodeVersion":"12.8.0","dependencies":{"unist-util-find-after":"^2.0.2","unist-util-visit-parents":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.9.2","dedent":"^0.7.0","remark":"^10.0.1","unist-builder":"^1.0.3","unist-util-remove-position":"^1.1.2"},"_npmOperationalInternal":{"tmp":"tmp/remark-sectionize_1.1.1_1581646366310_0.5370010451981089","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"remark-sectionize","version":"2.0.0","keywords":["remark","plugin","markdown","html","section"],"author":{"name":"Jake Low","email":"hello@jakelow.com"},"license":"MIT","_id":"remark-sectionize@2.0.0","maintainers":[{"name":"jake-low","email":"hello@jakelow.com"}],"homepage":"https://github.com/jake-low/remark-sectionize#readme","bugs":{"url":"https://github.com/jake-low/remark-sectionize/issues"},"dist":{"shasum":"4bd1b475d5358c923aa860e48d06b0ba0ce2348d","tarball":"https://registry.npmjs.org/remark-sectionize/-/remark-sectionize-2.0.0.tgz","fileCount":6,"integrity":"sha512-B+sCNNQroXybxX5Gwu9xbkjFIgK6vHMwbgPM/CEzQTP2ODxUiBsQRBjoSC6XR+yPOkgHvXV83HWCNA8IZuvJKg==","signatures":[{"sig":"MEQCIDVgyKOowxyPAKrXtcv5xdmuS411VjLaGiJ727JaHbOrAiABvSepRMMLDK5VDGUQC1lLXxvnOLiZtTH0DPeCKLMb8A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPf8lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqyrg/+L9kw6FK/4MJ1o7SGs6J462TkhKN3jleW9EruI5qpPSOzKRYZ\r\nrHJ26MD+8jzQq50Q5iLRkg+SDWQparaWs4t0nj90O1wbem42rf7Tg9YJc2s2\r\n5LGesG6Rbx/qQPHiQKTB9LH+Z+xeGdJq+Zlj3RbVHd97cXy0C4Llf5tdU3UY\r\nuraHhmVNDaUrAtncpCBybydAAJ2d+XMe/A6awdLJW++On6M4ZSu/d008ou82\r\n4ixejJbkAjwZaeuy2EJWAgyD4xMM9BSSt4rYbvPEMdY/vdY3OQHHPZdw43r8\r\nvkMB2zInanhGTwoJoWyguiFlyW9Bym8n2gbrlPSZ2OmblqHUk8GJtm49tnKU\r\n5pbhEhl00ZGI6Hs2Vs4lcNonaW0RFdZ481I51HIu3S69CH2Ynvl4e35fmDgk\r\n58JONzoWNbquIcpIbnwj7iCiBBoS/DuHmq72iwoAHsRzz3CBXE4mQaG7Jzj8\r\n+9pEFxYc9Qo4iLI/oEc9D4kVfTsOihTNaVQHYxruRPXaSB02ewZ/ukJjXYiG\r\n3p0PVW3UvEi9DQPmTegqCZ5VRSC89TglP7Bv5jsPpNSRVxztUfners6g8QI4\r\n6PdZ1EhxN7nHJQiZI/XKhrq1+bda3bwGJnxMPkAtc4nbLor7buBmwNQfiHNJ\r\nlbjB8whQkFhvooYMLKWYyTcfsqHR+d+y6sE=\r\n=TGzn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","type":"module","gitHead":"092594c50f7c19e6e40575807b32e8ff539de506","private":false,"scripts":{"test":"node test.js"},"_npmUser":{"name":"jake-low","email":"hello@jakelow.com"},"repository":{"url":"git+https://github.com/jake-low/remark-sectionize.git","type":"git"},"_npmVersion":"9.6.4","description":"Wrap content below each heading in a <section> element","directories":{},"_nodeVersion":"19.7.0","dependencies":{"unist-util-visit":"^4.1.2","unist-util-find-after":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.6.3","dedent":"^0.7.0","remark":"^14.0.2","unist-builder":"^3.0.1","unist-util-remove-position":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/remark-sectionize_2.0.0_1681784613298_0.026726672500420268","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"remark-sectionize","version":"2.1.0","description":"Wrap content below each heading in a <section> element","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/jake-low/remark-sectionize.git"},"author":{"name":"Jake Low","email":"hello@jakelow.com"},"license":"MIT","private":false,"type":"module","scripts":{"test":"node test.js"},"keywords":["remark","plugin","markdown","html","section"],"dependencies":{"unist-util-find-after":"^4.0.1","unist-util-visit":"^4.1.2"},"devDependencies":{"dedent":"^0.7.0","remark":"^14.0.2","tape":"^5.6.3","unified":"^11.0.5","unist-builder":"^3.0.1","unist-util-remove-position":"^4.0.2"},"_id":"remark-sectionize@2.1.0","gitHead":"80f6306722d4f1b272c5b54c14837e15174fbb4c","bugs":{"url":"https://github.com/jake-low/remark-sectionize/issues"},"homepage":"https://github.com/jake-low/remark-sectionize#readme","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-R/pHt1RLYrEqrbwOVXx8HnvvwOg+mxg8pE4kIWpIYE3/CuZhU8/PAx/0y1BbHWUA0jmTLTeWpUlDrS/B0pyd0g==","shasum":"fa0d620fd5fe160d70e8c972acce6c73b1fe49e1","tarball":"https://registry.npmjs.org/remark-sectionize/-/remark-sectionize-2.1.0.tgz","fileCount":7,"unpackedSize":11447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrgU4By68H+oVq7OCyxS17N4ebYelvN+MjKOD5CdkkXAIhAMsPGTuHh1dVF+fXm6J/IEEVR5Gx3svNk3Kp2Lar+xmx"}]},"_npmUser":{"name":"jake-low","email":"hello@jakelow.com"},"directories":{},"maintainers":[{"name":"jake-low","email":"hello@jakelow.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-sectionize_2.1.0_1731910744868_0.49997795257956446"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-02T07:55:54.669Z","modified":"2024-11-18T06:19:05.216Z","1.0.0":"2019-02-02T07:55:54.772Z","1.0.1":"2019-02-02T08:03:07.873Z","1.1.0":"2019-08-28T01:44:38.399Z","1.1.1":"2020-02-14T02:12:46.468Z","2.0.0":"2023-04-18T02:23:33.492Z","2.1.0":"2024-11-18T06:19:05.039Z"},"bugs":{"url":"https://github.com/jake-low/remark-sectionize/issues"},"author":{"name":"Jake Low","email":"hello@jakelow.com"},"license":"MIT","homepage":"https://github.com/jake-low/remark-sectionize#readme","keywords":["remark","plugin","markdown","html","section"],"repository":{"type":"git","url":"git+https://github.com/jake-low/remark-sectionize.git"},"description":"Wrap content below each heading in a <section> element","maintainers":[{"name":"jake-low","email":"hello@jakelow.com"}],"readme":"# remark-sectionize\n\nThis is a [remark](https://github.com/remarkjs/remark) plugin to wrap each\nheading and the content that follows it in a `<section>` tag, allowing you to\nstyle the document sections using CSS.\n\n## Example\n\nWhen using `remark-sectionize`, given the following markdown:\n\n```md\n# Forest elephants\n\n## Introduction\n\nIn this section, we discuss the lesser known forest elephants.\n\n## Habitat\n\nForest elephants do not live in trees but among them.\n```\n\n...remark will output the following HTML:\n\n```html\n<section>\n  <h1>Forest elephants</h1>\n  <section>\n    <h2>Introduction</h2>\n    <p>In this section, we discuss the lesser known forest elephants.</p>\n  </section>\n  <section>\n    <h2>Habitat</h2>\n    <p>Forest elephants do not live in trees but among them.</p>\n  </section>\n</section>\n```\n\nOne use case of this plugin is to permit the logical sections of a document to\nbe targeted and styled using CSS. For example, you could do something like\nthis:\n\n```css\nsection > section:nth-child(even) {\n  background-color: white;\n}\n\nsection > section:nth-child(odd) {\n  background-color: papayawhip;\n}\n```\n\nTo give the `h2`-level sections alternating background colors.\n\n## Usage\n\nIf you are invoking `remark` (or `unified`) in JavaScript, you can add this\nplugin by calling `use()`:\n\n```js\nimport { remark } from 'remark'\nimport html from 'remark-html'\nimport sectionize from 'remark-sectionize'\n\nconst input = `\n# Hello world!\n\nThe above heading and this paragraph will be wrapped in a <section> tag.\n`\n\nremark()\n  .use(sectionize)\n  .use(html, { sanitize: false })\n  .process(input, (err, file) => {\n    if (err) {\n      console.error(err)\n    } else {\n      console.log(String(file))\n    }\n  })\n```\n\nIf you're using remark from the CLI, you can use sectionize via the `--use`\nargument:\n\n```\n$ remark --use sectionize example.md\n```\n\nNote that for the above to work, `remark-sectionize` needs to be installed\nsomewhere that `remark` can find.\n\nFinally, if you're using Webpack and\n[mdx-loader](https://www.npmjs.com/package/mdx-loader) to import markdown files\nfrom JS, you can modify the loader options in your webpack config file, adding\n`sectionize` to your `mdPlugins` list (something like the following):\n\n```js\nimport sectionize from 'remark-sectionize'\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.(md|mdx|markdown)$/,\n        use: [\n          {\n            loader: \"babel-loader\",\n            options: {\n              presets: [\"@babel/preset-react\"]\n            }\n          },\n          {\n            loader: \"mdx-loader\",\n            options: {\n              mdPlugins: [sectionize]\n            }\n          }\n        ]\n      }\n    ]\n  }\n};\n```\n\n## License\n\nThis repository is licensed under the MIT license; see the LICENSE file for details.\n","readmeFilename":"README.md"}