{"_id":"@mapbox/rehype-prism","_rev":"3267375","name":"@mapbox/rehype-prism","description":"rehype plugin to highlight code blocks in HTML with Prism","dist-tags":{"latest":"0.9.0"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"time":{"modified":"2024-03-21T09:58:51.000Z","created":"2018-03-31T20:06:52.698Z","0.9.0":"2023-11-01T14:19:58.111Z","0.8.0":"2021-09-21T15:42:00.661Z","0.7.0":"2021-06-30T13:48:48.397Z","0.6.0":"2021-03-01T23:37:44.564Z","0.5.0":"2020-06-16T18:09:32.631Z","0.4.0":"2020-01-02T16:47:38.691Z","0.3.1":"2019-01-23T16:39:03.124Z","0.3.0":"2018-09-17T17:00:42.227Z","0.2.0":"2018-03-31T20:06:52.698Z"},"users":{},"author":{"name":"Mapbox"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"versions":{"0.9.0":{"name":"@mapbox/rehype-prism","version":"0.9.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"lint":"eslint .","format":"prettier --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.4","refractor":"^3.4.0","unist-util-visit":"^2.0.3"},"devDependencies":{"@mapbox/prettier-config-docs":"^2","dedent":"^0.7.0","eslint":"^8","eslint-plugin-node":"^11.1.0","husky":"^8","jest":"^29","lint-staged":"^15","prettier":"^3","rehype":"^11.0.0"},"prettier":"@mapbox/prettier-config-docs","lint-staged":{"{,lib/,test/}*.js":["prettier --write"],"*.js":["eslint --fix","prettier --write"]},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=10"},"gitHead":"6c19410f813ff21b199902774be874518fc4fada","_id":"@mapbox/rehype-prism@0.9.0","_nodeVersion":"18.15.0","_npmVersion":"9.6.6","dist":{"shasum":"63d10bb2db2630a485477eba175e481f61c32ac9","size":4756,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.9.0.tgz"},"_npmUser":{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},"directories":{},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.9.0_1698848397915_0.588112912996329"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-01T14:19:58.111Z","publish_time":1698848398111,"_source_registry_name":"default","_cnpm_publish_time":1698848398111},"0.8.0":{"name":"@mapbox/rehype-prism","version":"0.8.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"lint":"eslint .","format":"prettier --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.4","mrm":"^3.0.9","refractor":"^3.4.0","unist-util-visit":"^2.0.3"},"devDependencies":{"@mapbox/prettier-config-docs":"^0.2.1","dedent":"^0.7.0","eslint":"^7.32.0","eslint-plugin-node":"^11.1.0","husky":"^7.0.2","jest":"^27.2.1","lint-staged":"^11.1.2","prettier":"^2.4.1","rehype":"^11.0.0"},"prettier":"@mapbox/prettier-config-docs","lint-staged":{"{,lib/,test/}*.js":["prettier --write"],"*.js":["eslint --fix","prettier --write"]},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=10"},"gitHead":"fb4174fce30a1cde8d784fa94e7c04d8a7fa6d28","_id":"@mapbox/rehype-prism@0.8.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.11","dist":{"shasum":"c8b6eafb041a97e143fcbf93dd4e319ab0c131d6","size":4857,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.8.0.tgz"},"_npmUser":{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},"directories":{},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.8.0_1632238920475_0.08708145940986411"},"_hasShrinkwrap":false,"publish_time":1632238920661,"_cnpm_publish_time":1632238920661,"_cnpmcore_publish_time":"2021-12-16T15:22:07.852Z"},"0.7.0":{"name":"@mapbox/rehype-prism","version":"0.7.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"lint":"eslint .","format":"prettier --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.4","refractor":"^3.4.0","unist-util-visit":"^2.0.3"},"devDependencies":{"@mapbox/prettier-config-docs":"^0.2.1","dedent":"^0.7.0","eslint":"^7.29.0","eslint-plugin-node":"^11.1.0","husky":"^4.3.8","jest":"^27.0.6","lint-staged":"^10.5.4","prettier":"^2.3.2","rehype":"^11.0.0"},"prettier":"@mapbox/prettier-config-docs","lint-staged":{"{,lib/,test/}*.js":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=10"},"gitHead":"02a38fe35ec6c7cbbde6a170ad06f68e034d13c9","_id":"@mapbox/rehype-prism@0.7.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.11","dist":{"shasum":"38077bda08bbb9a0acd6ed23111a126fcc5f2b06","size":4410,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.7.0.tgz"},"_npmUser":{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},"directories":{},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.7.0_1625060928295_0.09943332044199082"},"_hasShrinkwrap":false,"publish_time":1625060928397,"_cnpm_publish_time":1625060928397,"_cnpmcore_publish_time":"2021-12-16T15:22:08.114Z"},"0.6.0":{"name":"@mapbox/rehype-prism","version":"0.6.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"lint":"eslint .","format":"prettier --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.4","refractor":"^3.3.1","unist-util-visit":"^2.0.3"},"devDependencies":{"@mapbox/prettier-config-docs":"^0.2.1","dedent":"^0.7.0","eslint":"^7.21.0","eslint-plugin-node":"^11.1.0","husky":"^4.3.8","jest":"^26.6.3","lint-staged":"^10.5.4","prettier":"^2.2.1","rehype":"^11.0.0"},"prettier":"@mapbox/prettier-config-docs","lint-staged":{"{,lib/,test/}*.js":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=10"},"gitHead":"fad71f6175c6bf7b2434ccca3d9eb82f18ed9998","_id":"@mapbox/rehype-prism@0.6.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.11","dist":{"shasum":"3d8a860870951d4354257d0ba908d11545bd5ed5","size":4385,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.6.0.tgz"},"_npmUser":{"name":"mapbox-npm-07","email":"accounts+npmjs-07@mapbox.com"},"directories":{},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.6.0_1614641864458_0.8680618889770373"},"_hasShrinkwrap":false,"publish_time":1614641864564,"_cnpm_publish_time":1614641864564,"_cnpmcore_publish_time":"2021-12-16T15:22:08.312Z"},"0.5.0":{"name":"@mapbox/rehype-prism","version":"0.5.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"lint":"eslint .","format":"prettier --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.3","refractor":"^3.0.0","unist-util-visit":"^2.0.2"},"devDependencies":{"@mapbox/prettier-config-docs":"^0.2.1","dedent":"^0.7.0","eslint":"^7.2.0","eslint-plugin-node":"^11.1.0","husky":"^4.2.5","jest":"^26.0.1","lint-staged":"^10.2.10","prettier":"^2.0.5","rehype":"^11.0.0"},"prettier":"@mapbox/prettier-config-docs","lint-staged":{"{,lib/,test/}*.js":["prettier --write"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=10"},"gitHead":"94f0880bf9d80221527e87112c42c015f44cdee0","_id":"@mapbox/rehype-prism@0.5.0","_nodeVersion":"10.18.1","_npmVersion":"6.14.5","dist":{"shasum":"b756308ebf3af8f92a6359cd78010a7770453e85","size":4382,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.5.0.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmUser":{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.5.0_1592330972522_0.45686171022026234"},"_hasShrinkwrap":false,"publish_time":1592330972631,"_cnpm_publish_time":1592330972631,"_cnpmcore_publish_time":"2021-12-16T15:22:08.527Z"},"0.4.0":{"name":"@mapbox/rehype-prism","version":"0.4.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"precommit":"lint-staged","lint":"eslint .","format":"prettier --single-quote --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.0","refractor":"^2.3.0","unist-util-visit":"^1.1.3"},"devDependencies":{"dedent":"^0.7.0","eslint":"^4.0.0","eslint-plugin-node":"^5.0.0","husky":"^0.13.4","jest":"^25.0.0","lint-staged":"^4.0.0","prettier":"^1.4.4","rehype":"^5.0.0"},"lint-staged":{"{,lib/,test/}*.js":["prettier --single-quote --write","git add"]},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=10"},"gitHead":"9046f4e2cf230335e1fb9f6046b1bf619fa9ebb6","_id":"@mapbox/rehype-prism@0.4.0","_nodeVersion":"12.7.0","_npmVersion":"6.13.2","dist":{"shasum":"58714b345ec01256aa74c24762a341f6a771494e","size":4331,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.4.0.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"_npmUser":{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.4.0_1577983658539_0.32248466226907135"},"_hasShrinkwrap":false,"publish_time":1577983658691,"_cnpm_publish_time":1577983658691,"_cnpmcore_publish_time":"2021-12-16T15:22:08.790Z"},"0.3.1":{"name":"@mapbox/rehype-prism","version":"0.3.1","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"precommit":"lint-staged","lint":"eslint .","format":"prettier --single-quote --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.0","refractor":"^2.3.0","unist-util-visit":"^1.1.3"},"devDependencies":{"dedent":"^0.7.0","eslint":"^4.0.0","eslint-plugin-node":"^5.0.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^4.0.0","prettier":"^1.4.4","rehype":"^5.0.0"},"lint-staged":{"{,lib/,test/}*.js":["prettier --single-quote --write","git add"]},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=4"},"gitHead":"3b334769cbc57bd3c3a9d2f8405a70defc40cd4b","_id":"@mapbox/rehype-prism@0.3.1","_npmVersion":"6.5.0","_nodeVersion":"8.14.0","_npmUser":{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},"dist":{"shasum":"538e38737df0d0d1462beabf9ceae88fce4035a5","size":33892,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.3.1.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.3.1_1548261542999_0.0021559905839365623"},"_hasShrinkwrap":false,"publish_time":1548261543124,"_cnpm_publish_time":1548261543124,"_cnpmcore_publish_time":"2021-12-16T15:22:09.036Z"},"0.3.0":{"name":"@mapbox/rehype-prism","version":"0.3.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"precommit":"lint-staged","lint":"eslint .","format":"prettier --single-quote --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.0","refractor":"^2.3.0","unist-util-visit":"^1.1.3"},"devDependencies":{"dedent":"^0.7.0","eslint":"^4.0.0","eslint-plugin-node":"^5.0.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^4.0.0","prettier":"^1.4.4","rehype":"^5.0.0"},"lint-staged":{"{,lib/,test/}*.js":["prettier --single-quote --write","git add"]},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=4"},"gitHead":"dc0c5a5d6ae3304212472e5859be7eb38125d85f","_id":"@mapbox/rehype-prism@0.3.0","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},"dist":{"shasum":"5ff7ed8815dce98b2666c5a793763413d4294eb7","size":33790,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.3.0.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.3.0_1537203641963_0.036942608614487504"},"_hasShrinkwrap":false,"publish_time":1537203642227,"_cnpm_publish_time":1537203642227,"_cnpmcore_publish_time":"2021-12-16T15:22:09.278Z"},"0.2.0":{"name":"@mapbox/rehype-prism","version":"0.2.0","description":"rehype plugin to highlight code blocks in HTML with Prism","main":"index.js","scripts":{"precommit":"lint-staged","lint":"eslint .","format":"prettier --single-quote --write '{,lib/,test/}*.js'","test-jest":"jest","pretest":"npm run lint","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/mapbox/rehype-prism.git"},"keywords":["rehype","rehype-plugin","syntax-highlighting","prism","html"],"author":{"name":"Mapbox"},"license":"MIT","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"homepage":"https://github.com/mapbox/rehype-prism#readme","dependencies":{"hast-util-to-string":"^1.0.0","refractor":"^2.3.0","unist-util-visit":"^1.1.3"},"devDependencies":{"dedent":"^0.7.0","eslint":"^4.0.0","eslint-plugin-node":"^5.0.0","husky":"^0.13.4","jest":"^20.0.4","lint-staged":"^4.0.0","prettier":"^1.4.4","rehype":"^5.0.0"},"lint-staged":{"{,lib/,test/}*.js":["prettier --single-quote --write","git add"]},"jest":{"coverageReporters":["json","lcov","text","html"],"resetMocks":true,"testRegex":"/test\\.js$"},"engines":{"node":">=4"},"gitHead":"62cd168ae663b7a75a9dce40d8e5ff0ed1dd5ca4","_id":"@mapbox/rehype-prism@0.2.0","_npmVersion":"5.8.0","_nodeVersion":"8.9.4","_npmUser":{"name":"davidtheclark","email":"david.dave.clark@gmail.com"},"dist":{"shasum":"c3e6a241487715cfc2d277975c672a0727c5f726","size":33240,"noattachment":false,"key":"/@mapbox/rehype-prism/-/@mapbox/rehype-prism-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@mapbox/rehype-prism/download/@mapbox/rehype-prism-0.2.0.tgz"},"maintainers":[{"name":"mapbox-admin","email":""},{"name":"mapbox-machine-user","email":"accounts+npm-mapbox-machine-user@mapbox.com"},{"name":"mapbox-npm","email":"accounts+npmjs@mapbox.com"},{"name":"mapbox-npm-01","email":"accounts+npmjs-01@mapbox.com"},{"name":"mapbox-npm-02","email":"accounts+npmjs-02@mapbox.com"},{"name":"mapbox-npm-03","email":"accounts+npmjs-03@mapbox.com"},{"name":"mapbox-npm-04","email":"accounts+npmjs-04@mapbox.com"},{"name":"mapbox-npm-05","email":""},{"name":"mapbox-npm-06","email":""},{"name":"mapbox-npm-07","email":""},{"name":"mapbox-npm-08","email":"accounts+npmjs-08@mapbox.com"},{"name":"mapbox-npm-09","email":"accounts+npmjs-09@mapbox.com"},{"name":"mapbox-npm-advanced-actions","email":""},{"name":"mapbox-npm-ci","email":"accounts+npmjs-npm-ci@mapbox.com"},{"name":"mbx-npm-01-production","email":""},{"name":"mbx-npm-02-production","email":""},{"name":"mbx-npm-02-staging","email":""},{"name":"mbx-npm-03-production","email":""},{"name":"mbx-npm-04-production","email":""},{"name":"mbx-npm-05-production","email":""},{"name":"mbx-npm-06-production","email":""},{"name":"mbx-npm-07-production","email":""},{"name":"mbx-npm-08-production","email":""},{"name":"mbx-npm-09-production","email":""},{"name":"mbx-npm-advanced-actions-production","email":""},{"name":"mbx-npm-advanced-actions-staging","email":""},{"name":"mbx-npm-ci-production","email":""},{"name":"mbx-npm-ci-staging","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-prism_0.2.0_1522526812624_0.7336655034081305"},"_hasShrinkwrap":false,"publish_time":1522526812698,"_cnpm_publish_time":1522526812698,"_cnpmcore_publish_time":"2021-12-16T15:22:09.524Z"}},"readme":"# @mapbox/rehype-prism\n\n[![Build Status](https://travis-ci.com/mapbox/rehype-prism.svg?branch=main)](https://travis-ci.com/mapbox/rehype-prism)\n\n[rehype](https://github.com/wooorm/rehype) plugin to highlight code blocks in HTML with [Prism] (via [refractor]).\n\n(If you would like to highlight code blocks with [highlight.js](https://github.com/isagalaev/highlight.js), instead, check out [rehype-highlight](https://github.com/wooorm/rehype-highlight).)\n\n**Best suited for usage in Node.**\nIf you would like to perform syntax highlighting *in the browser*, you should look into [less heavy ways to use refractor](https://github.com/wooorm/refractor#browser).\n\n## Installation\n\n```\nnpm install @mapbox/rehype-prism\n```\n\n## API\n\n`rehype().use(rehypePrism, [options])`\n\nSyntax highlights `pre > code`.\nUnder the hood, it uses [refractor], which is a virtual version of [Prism].\n\nThe code language is configured by setting a `language-{name}` class on the `<code>` element.\nYou can use any [language supported by refractor].\n\nIf no `language-{name}` class is found on a `<code>` element, it will be skipped.\n\n### options\n\n#### options.ignoreMissing\n\nType: `boolean`.\nDefault: `false`.\n\nBy default, if `{name}` does not correspond to a [language supported by refractor] an error will be thrown.\n\nIf you would like to silently skip `<code>` elements with invalid languages, set this option to `true`.\n\n#### options.alias\n\nType: `Record<string, string | string[]>`.\nDefault: `undefined`.\n\nProvide [aliases] to refractor to register as alternative names for a language.\n\n## Usage\n\nUse this package [as a rehype plugin](https://github.com/rehypejs/rehype/blob/master/doc/plugins.md#using-plugins).\n\nSome examples of how you might do that:\n\n```js\nconst rehype = require('rehype');\nconst rehypePrism = require('@mapbox/rehype-prism');\n\nrehype()\n  .use(rehypePrism)\n  .process(/* some html */);\n```\n\n```js\nconst unified = require('unified');\nconst rehypeParse = require('rehype-parse');\nconst rehypePrism = require('@mapbox/rehype-prism');\n\nunified()\n  .use(rehypeParse)\n  .use(rehypePrism)\n  .processSync(/* some html */);\n```\n\nIf you'd like to get syntax highlighting in Markdown, parse the Markdown (with remark-parse), convert it to rehype, then use this plugin.\n\n```js\nconst unified = require('unified');\nconst remarkParse = require('remark-parse');\nconst remarkRehype = require('remark-rehype');\nconst rehypePrism = require('@mapbox/rehype-prism');\n\nunified()\n  .use(remarkParse)\n  .use(remarkRehype)\n  .use(rehypePrism)\n  .process(/* some markdown */);\n```\n\n## FAQ\n\n<details>\n  <summary>Why does rehype-prism copy the <code>language-</code> class to the <code>&lt;pre&gt;</code> tag?</summary>\n  \n  [Prism recommends](https://prismjs.com/#basic-usage) adding the `language-` class to the `<code>` tag like this:\n\n  ```html\n  <pre><code class=\"language-css\">p { color: red }</code></pre>\n  ```\n\n  It bases this recommendation on the HTML5 spec. However, an undocumented behavior of their JavaScript is that, in the process of highlighting the code, they also copy the `language-` class to the `<pre>` tag:\n\n  ```html\n  <pre class=\"language-css\"><code class=\"language-css\"><span class=\"token selector\">p</span> <span class=\"token punctuation\">{</span> <span class=\"token property\">color</span><span class=\"token punctuation\">:</span> red <span class=\"token punctuation\">}</span></code></pre>\n  ```\n\n  This resulted in many [Prism themes](https://github.com/PrismJS/prism-themes) relying on this behavior by using CSS selectors like `pre[class*=\"language-\"]`. So in order for people using rehype-prism to get the most out of these themes, we decided to do the same.\n</details>\n\n[Prism]: http://prismjs.com/\n\n[refractor]: https://github.com/wooorm/refractor\n\n[language supported by refractor]: https://github.com/wooorm/refractor#syntaxes\n\n[aliases]: https://github.com/wooorm/refractor#refractoraliasname-alias\n","_attachments":{},"homepage":"https://github.com/mapbox/rehype-prism#readme","bugs":{"url":"https://github.com/mapbox/rehype-prism/issues"},"license":"MIT"}