{"_id":"@astro-m2dx/remark-sectionize-headings","_rev":"3-d6e2852b3a394afac0c110e3ebb2b9ae","name":"@astro-m2dx/remark-sectionize-headings","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@astro-m2dx/remark-sectionize-headings","version":"0.0.1","description":"Remark plugin to wrap headings and their following child paragraphs in sections","author":{"name":"christian@hackyourshack.org"},"homepage":"https://astro-m2dx.netlify.app/","repository":{"type":"git","url":"git+https://github.com/astro-m2dx/astro-m2dx.git#main"},"license":"MIT","keywords":["remark-plugin","astro","mdx","layout"],"main":"lib/index.js","types":"lib/index.d.ts","type":"module","devDependencies":{"@types/mdast":"^3.0.10","eslint-config-base":"0.0.0","rimraf":"^3.0.2","tsconfig":"0.0.0","typescript":"^4.7.4","unified":"^10.1.2"},"dependencies":{"@astro-m2dx/common":"0.0.4","unist-util-visit":"^4.1.1"},"scripts":{"build":"tsc","clean":"rimraf -rf ./lib/"},"bugs":{"url":"https://github.com/astro-m2dx/astro-m2dx/issues"},"_id":"@astro-m2dx/remark-sectionize-headings@0.0.1","_integrity":"sha512-RGY0wzibhJpo24YmWaC6pd1OVydIHKJ9qvi3rejjpxhj2qjoWe3xBqWJGaBZAm5Xv0tsavlCKvsNpY9iQDt+Fg==","_resolved":"/tmp/22cb12739b4acf35b7e65642f5284df1/astro-m2dx-remark-sectionize-headings-0.0.1.tgz","_from":"file:astro-m2dx-remark-sectionize-headings-0.0.1.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-RGY0wzibhJpo24YmWaC6pd1OVydIHKJ9qvi3rejjpxhj2qjoWe3xBqWJGaBZAm5Xv0tsavlCKvsNpY9iQDt+Fg==","shasum":"b2c180161a6b6e93982b83925a407dee72d32823","tarball":"https://registry.npmjs.org/@astro-m2dx/remark-sectionize-headings/-/remark-sectionize-headings-0.0.1.tgz","fileCount":6,"unpackedSize":6957,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDviBC6S7BspT9FDIzH7Tl0h2il/T4Kgisi4q7OMW5exAIgFMAi3UKjqjLe56LCA9OCa5UcAnQmwHWUOer+6lOirTk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGxK6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVKA/9GpJkULDHSWgwiQkaawsevXMy7/rzRwARIjQRQkNB/Zm3QTr5\r\nhuSh72A4wxFpryZAtGYDnRTqVq2tZ/esjXYIgjVq9x8L8UrFrkl012/TjK7N\r\n11IvhT50/fOwqQWKK3NPWh1Dez+zfDHLh+8OtCNrRDBLymtNlzue4a+o2CHa\r\nR/15VPrfRsJx5RmYr9U9CGpt5yOSQqbuSZS4uE1I+GwS10JNdiHYbk3XBz9/\r\nmIaWoej8SBp4eQRuFXcUC7oe7F2Th2o85U59ResDRxKB270PCUWXEHMlA5gu\r\nKaAjUdiiOZfPwPTtjn0rMRt8Ef7KQzjT2ufg3+7dsa5XkCkWtQOv7/eLCc0I\r\n3zKvOpmSMj3ISmeqr8U8BYqtwNvdi+TbjGZ/2Lt9W9jIT/FkmEybmiJG7hke\r\nXYctkoV5cyipcTHz+8WfxOe4hWAIFcuzFfYyB/BYyzjcuxJq7z8DmgjFvNFd\r\nhuPWUyXK5iw13qR7o/HGPIO0TMGWmXoXW58pXqMpdaxwGW6Gg5v2MaBtl0Tj\r\nROY38kdHOYXLO546KzMO+8y5D6hIe9J5m18OV/oSZQpEQJ0iL2WLXXPe6QY6\r\nPPPBoiSRn5tkNtHWLCtKFjzKsdtgXnBEvq+N3ZbQwNPCnVWr6Xh6FW/3DU0e\r\n/pUA7gVnu8NhVm3vlHFjQq1yojD0qiV6oLo=\r\n=TRiT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"shackhacker-christian","email":"christian@hackyourshack.org"},"directories":{},"maintainers":[{"name":"shackhacker-christian","email":"christian@hackyourshack.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-sectionize-headings_0.0.1_1662718650297_0.07302166797346543"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.2":{"name":"@astro-m2dx/remark-sectionize-headings","version":"0.0.2","description":"Remark plugin to wrap headings and their following child paragraphs in sections","author":{"name":"christian@hackyourshack.org"},"homepage":"https://astro-m2dx.netlify.app/","repository":{"type":"git","url":"git+https://github.com/astro-m2dx/astro-m2dx.git#main"},"license":"MIT","keywords":["remark-plugin","astro","mdx","layout"],"main":"lib/index.js","types":"lib/index.d.ts","type":"module","devDependencies":{"@types/mdast":"^3.0.10","eslint-config-base":"0.0.0","rimraf":"^3.0.2","tsconfig":"0.0.0","typescript":"^4.7.4","unified":"^10.1.2"},"dependencies":{"@astro-m2dx/common":"0.0.5","unist-util-visit":"^4.1.1"},"scripts":{"build":"tsc","clean":"rimraf -rf ./lib/"},"bugs":{"url":"https://github.com/astro-m2dx/astro-m2dx/issues"},"_id":"@astro-m2dx/remark-sectionize-headings@0.0.2","_integrity":"sha512-yeQK8CBGQNsh0Q9RrfYIu6WOLXe4UKL0r+4fgExbtHuc050o8V4g9i3Jypb07PNF0MlkilLZKv9xNMxej+osZQ==","_resolved":"/tmp/dcbd1914c36724bda7e03d240442f30d/astro-m2dx-remark-sectionize-headings-0.0.2.tgz","_from":"file:astro-m2dx-remark-sectionize-headings-0.0.2.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-yeQK8CBGQNsh0Q9RrfYIu6WOLXe4UKL0r+4fgExbtHuc050o8V4g9i3Jypb07PNF0MlkilLZKv9xNMxej+osZQ==","shasum":"7da73ba4aa741f15a5f048faacb5af0ade01be9c","tarball":"https://registry.npmjs.org/@astro-m2dx/remark-sectionize-headings/-/remark-sectionize-headings-0.0.2.tgz","fileCount":6,"unpackedSize":7593,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlUlQDD6f2NwY2/aUy+RdGhu0xm4gLz9LqPv8K3QfqZAiEAsiE4oOFIpzSV1dhHWX4JE0dtI4QGxdNcv3qOoJkweBg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH3MpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6UQ//Q/Sjis900qgnSDa4NbMfZ9Lf1hwmUUBg2l4wYcFlZHyWOc+i\r\noMXljc5fsmLOS0ZXGsUfH2+iK9GlAHLxAisPZSwRh7RM0RGAr3dRf5BzMuO/\r\nY43GUiDLWpkIMcF6cdER7FaVgGlXjOw6bZ9yDChgMTNkqq0LZjGX59SvB2Rc\r\nMXZHAhrVwmUY3nxwJk//1/C7E2P91F5mhI9tFXo6H2K+oMPehMCPdh/9xrY0\r\n8xqv9wpDIeYtvlNamKMECMsd9z7+m+UkO327VbO/oJ5BTwslyMUBIrSm0BFu\r\nKEAtgbfqStm7vhec5ns3ZSiMPHfifGnJmlbUD0cYX08m5FcKYvUxeGVBQd3R\r\nAjJcq13Tn3K8Qrt9zdlgFWoQaX2ydX36KxmXnbT1sR6ZB0E6RpJvDZs/9hJ2\r\nu+8YsA1TBAtGt0o8gYvzl0tuMzJ73Nz8JH+975xmFZge63TG4LvwHn7qipLc\r\nMjC4xeDhLBLOlmDLUFXmKjxZ4bCpwBe2RQUwkutMGm4KXrP1IrsDN/FG7RwK\r\nL8HVH9PMfZkj/BknOb6cYg1NSqNAPqNaObsmJlT1RsGT268HGgiyYXfEKSzb\r\nicreI2dUQ8vOwmlas3kOvWGxGE5fyjCPqNoHzw+nFzxQAGw7ivtxa32YpnBM\r\nuWFORt2DWNuOYFD5RQVzpZXBbNChoIXW+Bw=\r\n=2Pm1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"shackhacker-christian","email":"christian@hackyourshack.org"},"directories":{},"maintainers":[{"name":"shackhacker-christian","email":"christian@hackyourshack.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-sectionize-headings_0.0.2_1663005481580_0.6180736952035193"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.3":{"name":"@astro-m2dx/remark-sectionize-headings","version":"0.0.3","description":"Remark plugin to wrap headings and their following child paragraphs in sections","author":{"name":"christian@hackyourshack.org"},"homepage":"https://astro-m2dx.netlify.app/","repository":{"type":"git","url":"git+https://github.com/astro-m2dx/astro-m2dx.git#main"},"license":"MIT","keywords":["remark-plugin","astro","mdx","layout"],"main":"lib/index.js","types":"lib/index.d.ts","type":"module","devDependencies":{"@types/mdast":"^3.0.10","eslint-config-base":"0.0.0","rimraf":"^3.0.2","tsconfig":"0.0.0","typescript":"^4.7.4","unified":"^10.1.2"},"dependencies":{"@astro-m2dx/common":"0.0.6","unist-util-visit":"^4.1.1"},"scripts":{"build":"tsc","clean":"rimraf -rf ./lib/"},"bugs":{"url":"https://github.com/astro-m2dx/astro-m2dx/issues"},"_id":"@astro-m2dx/remark-sectionize-headings@0.0.3","_integrity":"sha512-Rh5lN9mr7cslqkCN48L+2egwOWD6mgWHNWxrl+wzZ3sLuhDaMdGfhqgkH2yBhEEXSsW+AoJTFwLAxvpmaD29kQ==","_resolved":"/tmp/3561ce3117411e8e498112006c718bff/astro-m2dx-remark-sectionize-headings-0.0.3.tgz","_from":"file:astro-m2dx-remark-sectionize-headings-0.0.3.tgz","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Rh5lN9mr7cslqkCN48L+2egwOWD6mgWHNWxrl+wzZ3sLuhDaMdGfhqgkH2yBhEEXSsW+AoJTFwLAxvpmaD29kQ==","shasum":"f873015f46da7b8b53dcc7f8cc9daf923134a6f0","tarball":"https://registry.npmjs.org/@astro-m2dx/remark-sectionize-headings/-/remark-sectionize-headings-0.0.3.tgz","fileCount":6,"unpackedSize":7810,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB/6Zrp1svFRrQ8UtaMQWlBTEiUvyoQQpcD3b9Svk98MAiEAwcCJS2M4PmCJC4EbXYQH26DI29HHKSxV/W33JDTErRw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRU8WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6Ug//U6mlg1SN7CZR3wAHD/lRl44pArpscZyOmo5XDIB607ZMPhff\r\n9qg9OYHtGDbTwNLELvFSNPbUxRTO4HlgjmBFEByWikgTwi43rvMqMkAorA4n\r\nIHOUHblfZmDB+GcEzrMOge0MIdE0pWxRMEnyrKNAmfUGCzMIq6FKBK3/6gQq\r\ngn9q/ws1sWL5WjqS+Dz+B801PCbrA86/pVSRO1tLJXDzX8s2RnNSTfBEkV6o\r\nVIQYF2+cFDhcWNvCWLr/0xnotTTub4/uJbhbd/ZBfA4vQUJqq1CP6juw9ZwN\r\nncZ/FKvO982QPqoTQ3/kaUHIhg36tOcUp+AzeFjqrXBp+2LsNfptfMPcKu0Z\r\nFtw6lVVVFRxHAir5YqJe6d2ysf1SZCRO+w0raIFcFSogdMXvogKZ0Dv0GPMx\r\nf5wlKASSy7q12+qpVG70cJQWBh3FONlt+GLqrJgUvB+M7hxc+uSrmB4TqGXW\r\nIMV9JmbKqI01pxgrm5kp1jz4DEo1enyKK13hCVqaad/JHRLMvAQ/5nf5yPk6\r\nbQDMCkbovAuWnw6dJMOt4wscagD41wDzTYAT41FEHHMklFzpLDCivoIyxfho\r\nbh1xhh6xYDTMZQCITYdYw99PM0hh3Rnmiacyz5q18I+VU5bnF4CUr8waOK/a\r\nLXLbFgjIJUEW7/acvU4kzQgzgckFGjr9HT8=\r\n=jBnR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"shackhacker-christian","email":"christian@hackyourshack.org"},"directories":{},"maintainers":[{"name":"shackhacker-christian","email":"christian@hackyourshack.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-sectionize-headings_0.0.3_1665486614410_0.9965934137520625"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2022-09-09T10:17:30.220Z","0.0.1":"2022-09-09T10:17:30.437Z","modified":"2022-10-11T11:21:39.700Z","0.0.2":"2022-09-12T17:58:01.727Z","0.0.3":"2022-10-11T11:10:14.523Z"},"maintainers":[{"name":"shackhacker-christian","email":"christian@hackyourshack.org"}],"description":"Remark plugin to wrap headings and their following child paragraphs in sections","homepage":"https://astro-m2dx.netlify.app/","keywords":["remark-plugin","astro","mdx","layout"],"repository":{"type":"git","url":"git+https://github.com/astro-m2dx/astro-m2dx.git#main"},"author":{"name":"christian@hackyourshack.org"},"bugs":{"url":"https://github.com/astro-m2dx/astro-m2dx/issues"},"license":"MIT","readme":"# Astro M²DX - Remark plugin to wrap headings in sections\n\n> **DEPRECATED:** Please consider using the plugin [astro-m2dx](https://www.npmjs.com/package/astro-m2dx), which bundles all features from the different `@astro-m2dx` plugins in one plugin (all features are opt-in).\n\nremark plugin to wrap markdown headings and the following paragraphs in HTML sections.\n\nAn alternative could be [remark-sectionize](https://www.npmjs.com/package/remark-sectionize), but this plugin offers a few more options and adds a CSS class according to the heading level to the resulting section.\n\n[Astro M²DX](https://astro-m2dx.netlify.app) is a set of plugins allowing you to define an [Astro](https://astro.build) 🚀 publishing pipeline for Markdown/MDX documents with full [MDX](https://mdxjs.com) features, but without the technical fuss, i.e. you and your non-tech editors can write **clean** markdown.\n\nHave a look at the other [`astro-m2dx` plugins](https://www.npmjs.com/org/astro-m2dx).\n\n## Content <!-- omit in toc -->\n\n- [What is this?](#what-is-this)\n- [When should I use this?](#when-should-i-use-this)\n- [Install](#install)\n- [Use](#use)\n  - [Options](#options)\n\n## What is this?\n\nThis package is a [`remark`](https://github.com/remarkjs/remark/blob/main/doc/plugins.md) plugin to wrap markdown headings and the following paragraphs in HTML sections. It does not make any assumptions on the use of Astro.\n\n## When should I use this?\n\nIf you want to style sections of your document according to heading levels.\n\nThis is a pure remark plugin and can be used easily outside of an Astro context.\n\n## Install\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:\n\n```sh\nnpm install -D @astro-m2dx/remark-sectionize-headings\n```\n\n## Use\n\nIn your `astro.config.mjs`\n\n```js\nimport { defineConfig } from 'astro/config';\n\nimport mdx from '@astrojs/mdx';\nimport sectionizeHeadings from '@astro-m2dx/remark-sectionize-headings';\n// ^^^\n\n// https://astro.build/config\nexport default defineConfig({\n  integrations: [mdx()],\n  markdown: {\n    remarkPlugins: [sectionizeHeadings],\n    //              ^^^\n    extendDefaultPlugins: true,\n  },\n});\n```\n\nThis uses the default options, where all headings are wrapped according to their level.\n\n### Options\n\nIf you want to wrap only headings on particular levels, you can pass the `levels` option (`number[]`) like so:\n\n```js\nremarkPlugins: [[sectionizeHeadings, {levels: [2]}]],\n```\n\nwhich would wrap only heading level 2.\n","readmeFilename":"README.md"}