{"_id":"remark-custom-heading-id","_rev":"3-84f0b2f0fe334f18ede83925dfdfc43b","name":"remark-custom-heading-id","description":"remark plugin to support Markdown Extension for custom heading IDs","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"remark-custom-heading-id","version":"1.0.0","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","heading","heading-id"],"author":{"url":"https://eyas.sh","name":"Eyas Sharaiha","email":"npm@eyas.sh"},"license":"MIT","_id":"remark-custom-heading-id@1.0.0","maintainers":[{"name":"eyassh","email":"npm@eyas.sh"}],"homepage":"https://github.com/Eyas/md-heading-id#readme","bugs":{"url":"https://github.com/Eyas/md-heading-id/issues"},"dist":{"shasum":"d3d3601070aa558e5b4cd65965fd680afe9502a8","tarball":"https://registry.npmjs.org/remark-custom-heading-id/-/remark-custom-heading-id-1.0.0.tgz","fileCount":4,"integrity":"sha512-t1GPQ6WihSTkwBnJV8h4SSMvQ4YGN718pBzTOy3+DpgiLUIU5H8diDU86gCd0kl+fMG1P2wsL61kzgTok0gZjA==","signatures":[{"sig":"MEYCIQCz1qDcDJO3aCM4IoE8lYUpwUJHUm6h5CpgbHO7GuOIlwIhAOnVl/GDAggBSvEyeiTfyg5ZKGotQFuoujnGaZ7LvtFR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiJXDVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+dA/8DY9SD2IuqXx171ctOuP1fJdsDF7p5rVylsrSBxahPApjL7vh\r\n3I92Crwyw+cs1Nkt/9ftB51U3FAxlPtjAX9N2yHdon6W9mNXOjgx5bEkUn3r\r\nB2+cYVBHxfiTQlSvZzRl7rM3hZUp/BPm19HYgzeeqy55O8TaJeh0CwKYZWHl\r\nQeGolSWJw50+1W5DYy7/fdR85/Mw7GbqkKfk4k7UGVicrAWmpzuqoBHP6IOP\r\n8725It3+6zrCR5pUalPYD2tyKNJ79IwujX2HssbGioMF9e/G1A9EX1zP9WK1\r\n9LHVMiV0c6E07x9HgTUvXBhW2oBACOoPwn+OlqOcE2DOMOq5RLEDC5kumzvS\r\nmCQRjkI1F6tfTLctUfCwW0hHSbajdPn7LAJB6hvC3g7AG1G98qkvsBX6eP7d\r\npjlxvJWcBFB879evmobJsujBFHlujqHWxFtRSPifv2Ko8JBGK4ZGNdaZATiG\r\naT39oGC5JyS2kkOem79ON+dZysCin10a1Ha0f8iptMrYTT1O/5oc0JNYNMjK\r\n4lMEX6SthVHzBPzATg+aAVJqlC6ppUTwlYGkCf3pPrmWqkhCYm59kBbXd1En\r\nqrfla/KOsEpFBmseVq4b8n4A2waCjWVYNgRY/Xyt7o4kX7VVadW1gc5tFXCA\r\nnRpX339lyWBqBQi42BImiC9Z6PZBIR2ayfQ=\r\n=+aJK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"/__tests__/.*\\.js$"},"main":"index.js","type":"module","types":"index.d.ts","gitHead":"6f2a094f19488d59ced948555462c69234fc9d5d","scripts":{"test":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage","build":"rimraf test/**/*.d.ts *.d.ts && tsc","prepack":"npm run build"},"_npmUser":{"name":"eyassh","email":"npm@eyas.sh"},"repository":{"url":"git+https://github.com/Eyas/md-heading-id.git","type":"git","directory":"packages/remark-custom-heading-id"},"_npmVersion":"8.5.2","description":"remark plugin to support Markdown Extension for custom heading IDs","directories":{},"sideEffects":false,"_nodeVersion":"16.11.0","dependencies":{"mdast-heading-id":"*","unist-util-visit":"^4.1.0","micromark-heading-id":"*"},"_hasShrinkwrap":false,"devDependencies":{"remark":"^14.0.2","unified":"^10.1.1","remark-mdx":"^2.0.0","remark-rehype":"^10.1.0","rehype-stringify":"^9.0.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-custom-heading-id_1.0.0_1646620885169_0.9600265713563845","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"remark-custom-heading-id","version":"1.0.1","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","heading","heading-id"],"author":{"url":"https://eyas.sh","name":"Eyas Sharaiha","email":"npm@eyas.sh"},"license":"MIT","_id":"remark-custom-heading-id@1.0.1","maintainers":[{"name":"eyassh","email":"npm@eyas.sh"}],"homepage":"https://github.com/Eyas/md-heading-id#readme","bugs":{"url":"https://github.com/Eyas/md-heading-id/issues"},"dist":{"shasum":"a3cbe966a8e84c403671aca298ead5156a460636","tarball":"https://registry.npmjs.org/remark-custom-heading-id/-/remark-custom-heading-id-1.0.1.tgz","fileCount":5,"integrity":"sha512-K9gIrLOmIdOsHusDRQL4U0ew7Q3WzzKsr3tquKuppV/kJwEYj4v+Bn/T9pJkkpS1m2i9y9lrsmh9vHs4sRPLIg==","signatures":[{"sig":"MEUCIEwsZ2OYnZP38oIVGddMVuOwCq7+jO/88V0vYnSBbOSNAiEAhwdDxE9eRLioX+9rvtRfhhu0AZ8FNzgGYdhJNC/fksw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkKiHRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNDhAAm7dmxOYj6AhjOw+TzZmszU/0zDVwo4wZUqKm4pA3K/dMgo8K\r\n6m9wjN4wjDWAYBBONMXPKYgy6ZEIF/aemCEI+JM+mnN8gMvfnQX3aFLJ64a4\r\n6z0ricB/da6ynHBqBzU3eYfVKLl5aBvJhqgI27kQVE5r10Emz1lPvmoh6icJ\r\nVGP0RMUyMP9yMtGAJvbAp8ZJsqPjHEt88+QZWJCTzzFqksbbKmmY87lScsLT\r\nh++jHHEHhkB001jBcwQAaz7f2ZBp2yMCK5H0zZ8+WXr7gNHO1SgHxHTidbxt\r\nJdUR24GjfdaQ5kVLYcOctkEpx8KdjwKcw3B10OKDu3laBV4R19iamgQ8XbhG\r\nmbTMsEwBsDZdhCNKGTWTUgZ72XtM6otEac8mdmygvBopEBEeAU2Yh7mz/Za0\r\n3agFtLHqI1TF3caQOFK8LwpIDIFfsBe6n8YzvnQszg7VF1bsMcj7Mgk4boIO\r\nF+omeBWN5ulgO/Q53rF2tS/5rnZCCQnLNZXZsuB4pNh87MHFgFlx2FSVZGb/\r\nsc5aaASMglccKpHzLG3LNEe0cS7aCb9P+iWXV8zKaEziM0OwXERzgE73qJwG\r\no0lbtZ3pIAqtq4tAuoHLSw65hzd7UFghureva5Kzw2EzAbMzNTtnK8xJOcq9\r\nZ3XmEnRIJl2KYGo9/NuFCvdgX/PeaSxiEbA=\r\n=/2UK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"/__tests__/.*\\.js$"},"main":"index.js","type":"module","types":"types/index.d.ts","gitHead":"e4ff97a21ade7c38d291dc7d7031eb92dedba311","scripts":{"test":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage","build":"npm run clean && tsc","clean":"rimraf --glob __tests__/**/*.d.ts *.d.ts","prepack":"npm run build"},"_npmUser":{"name":"eyassh","email":"npm@eyas.sh"},"repository":{"url":"git+https://github.com/Eyas/md-heading-id.git","type":"git","directory":"packages/remark-custom-heading-id"},"_npmVersion":"8.19.2","description":"remark plugin to support Markdown Extension for custom heading IDs","directories":{},"sideEffects":false,"_nodeVersion":"18.12.0","dependencies":{"mdast-heading-id":"*","unist-util-visit":"^4.1.2","micromark-heading-id":"*"},"_hasShrinkwrap":false,"devDependencies":{"vfile":"^5.3.7","remark":"^14.0.2","unified":"^10.1.2","remark-mdx":"^2.3.0","@mdx-js/mdx":"^2.3.0","remark-rehype":"^10.1.0","rehype-stringify":"^9.0.3"},"_npmOperationalInternal":{"tmp":"tmp/remark-custom-heading-id_1.0.1_1680482769101_0.10889978222127894","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"remark-custom-heading-id","version":"2.0.0","description":"remark plugin to support Markdown Extension for custom heading IDs","license":"MIT","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","heading","heading-id"],"repository":{"type":"git","url":"git+https://github.com/Eyas/md-heading-id.git","directory":"packages/remark-custom-heading-id"},"bugs":{"url":"https://github.com/Eyas/md-heading-id/issues"},"author":{"name":"Eyas Sharaiha","email":"npm@eyas.sh","url":"https://eyas.sh"},"type":"module","sideEffects":false,"main":"index.js","types":"types/index.d.ts","dependencies":{"mdast-heading-id":"*","micromark-heading-id":"*","unist-util-visit":"^5.0.0"},"devDependencies":{"@mdx-js/mdx":"^3.0.1","rehype-stringify":"^10.0.0","remark":"^15.0.1","remark-mdx":"^3.0.1","remark-rehype":"^11.1.0","unified":"^11.0.5","vfile":"^6.0.1"},"scripts":{"prepack":"npm run build","clean":"rimraf --glob __tests__/**/*.d.ts index.d.ts","build":"npm run clean && tsc","test":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage"},"_id":"remark-custom-heading-id@2.0.0","gitHead":"355b353981c64cf8fe0fd25a57d887e0f425bf7c","homepage":"https://github.com/Eyas/md-heading-id#readme","_nodeVersion":"21.2.0","_npmVersion":"10.2.5","dist":{"integrity":"sha512-LpR+c4pmuBGG/zhNbebecDnpKyXU4B7bdNu6tXW83T3QWlkwUpHYyUR8uXQ/BERK9HlI5pXGLu7DjkIS07/iVQ==","shasum":"9eecf63937cea189f9737df74059129906847efd","tarball":"https://registry.npmjs.org/remark-custom-heading-id/-/remark-custom-heading-id-2.0.0.tgz","fileCount":5,"unpackedSize":6848,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn+j05bdDfmla6DeeUopMV/xRBPwTRWlqxBFOLWoScKwIgAzgxkmgMIus620T7wwNuPSJ5cmRD3z76jpqbj/32Tlg="}]},"_npmUser":{"name":"eyassh","email":"npm@eyas.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-custom-heading-id_2.0.0_1719035755195_0.45240446909175036"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-07T02:41:25.169Z","modified":"2024-06-22T05:55:55.543Z","1.0.0":"2022-03-07T02:41:25.510Z","1.0.1":"2023-04-03T00:46:09.187Z","2.0.0":"2024-06-22T05:55:55.340Z"},"maintainers":[{"name":"eyassh","email":"npm@eyas.sh"}],"author":{"name":"Eyas Sharaiha","email":"npm@eyas.sh","url":"https://eyas.sh"},"repository":{"type":"git","url":"git+https://github.com/Eyas/md-heading-id.git","directory":"packages/remark-custom-heading-id"},"keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","heading","heading-id"],"license":"MIT","homepage":"https://github.com/Eyas/md-heading-id#readme","bugs":{"url":"https://github.com/Eyas/md-heading-id/issues"},"readme":"[![Build Status](https://github.com/Eyas/md-heading-id/actions/workflows/ci.yml/badge.svg)](https://github.com/Eyas/md-heading-id/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/Eyas/md-heading-id/branch/main/graph/badge.svg?token=BAF7ARB105)](https://codecov.io/gh/Eyas/md-heading-id)\n\n# remark-custom-heading-id\n\nSupport for Heading ID Markdown Extensions for Remark, compatible with MDX.js.\n\n## Get Started\n\nMost users should use **remark-custom-heading-id**:\n\n```bash\n$ npm install remark-custom-heading-id --save\n```\n\n### ... with vanilla Remark\n\n```js\nimport {remarkHeadingId} from 'remark-custom-heading-id';\nimport {remark} from 'remark';\nimport html from 'remark-rehype';\nimport stringify from 'rehype-stringify';\n\nconst result = remark()\n  .use(remarkHeadingId)\n  .use(html)\n  .use(stringify)\n  .processSync(`# Hello, world {#hello}`);\nconsole.log(String(result));\n\n// Outputs:\n// <h1 id=\"hello\">Hello, world<h1>\n```\n\n### ... with MDX Remark\n\n```js\nimport {remarkHeadingId} from 'remark-custom-heading-id';\nimport {remark} from 'remark';\nimport remarkMdx from 'remark-mdx';\nimport html from 'remark-rehype';\nimport stringify from 'rehype-stringify';\n\nconst result = remark()\n  .use(remarkMdx)\n  .use(remarkHeadingId)\n  .use(html)\n  .use(stringify)\n  .processSync(`# Hello, world {#hello}`);\n\nconsole.log(String(result));\n\n// Outputs:\n// <h1 id=\"hello\">Hello, world<h1>\n```\n\n### ... with MDX-based plugins (e.g. next-mdx-remote)\n\n```js\nimport {remarkHeadingId} from 'remark-custom-heading-id';\nimport {serialize} from 'next-mdx-remote/serialize'; // or similar...\n\nexport default async function getMdxProps(source) {\n  return await serialize(source, {\n    mdxOptions: {\n      remarkPlugins: [remarkHeadingId],\n    },\n  });\n}\n```\n","readmeFilename":"README.md"}