{"_id":"rehype-parse","_rev":"3267647","name":"rehype-parse","description":"rehype plugin to parse HTML","dist-tags":{"latest":"9.0.0"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-03-21T10:00:01.000Z","created":"2016-06-19T12:10:21.993Z","9.0.0":"2023-08-26T09:15:52.908Z","8.0.5":"2023-08-16T17:42:43.237Z","8.0.4":"2022-01-29T10:35:41.057Z","8.0.3":"2021-08-31T12:37:21.448Z","8.0.2":"2021-08-08T15:07:12.322Z","8.0.1":"2021-07-30T17:15:07.738Z","8.0.0":"2021-07-30T15:51:07.107Z","7.0.1":"2020-06-21T13:00:14.056Z","7.0.0":"2020-06-08T13:59:12.884Z","6.0.2":"2019-11-09T20:27:14.658Z","6.0.1":"2019-07-01T14:08:41.380Z","6.0.0":"2018-11-17T19:56:52.990Z","5.0.0":"2018-07-17T20:57:59.937Z","4.1.0":"2018-01-21T14:14:00.091Z","4.0.0":"2017-06-18T09:53:50.908Z","3.1.0":"2017-03-05T12:17:57.283Z","3.0.0":"2017-02-23T21:13:24.971Z","2.0.1":"2016-09-17T16:54:13.571Z","2.0.0":"2016-07-26T14:38:11.892Z","1.0.0":"2016-06-19T12:32:33.534Z","0.0.0":"2016-06-19T12:10:21.993Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"versions":{"9.0.0":{"name":"rehype-parse","version":"9.0.0","description":"rehype plugin to parse HTML","license":"MIT","keywords":["abstract","ast","html","parse","plugin","rehype","rehype-plugin","syntax","tree","unified"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/hast":"^3.0.0","hast-util-from-html":"^2.0.0","unified":"^11.0.0"},"scripts":{},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"d6925bda49465d338d34037f3b819c271723d055","types":"./index.d.ts","_id":"rehype-parse@9.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"shasum":"3949faeec6f466ec57774215661e0d75469195d9","size":7231,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-9.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-9.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_9.0.0_1693041352637_0.45713551816321996"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-26T09:15:52.908Z","publish_time":1693041352908,"_source_registry_name":"default","_cnpm_publish_time":1693041352908},"8.0.5":{"name":"rehype-parse","version":"8.0.5","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-from-parse5":"^7.0.0","parse5":"^6.0.0","unified":"^10.0.0"},"scripts":{"build":"tsc --build --clean && tsc --build && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"476d219cdd69f051bd5f64532e1cea237588c5f5","_id":"rehype-parse@8.0.5","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"shasum":"ccffc21e08e288c7846614f8dc1dc23d603a4a80","size":12970,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-8.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-8.0.5.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_8.0.5_1692207763004_0.8582162291929485"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-16T17:42:43.237Z","publish_time":1692207763237,"_source_registry_name":"default","_cnpm_publish_time":1692207763237},"8.0.4":{"name":"rehype-parse","version":"8.0.4","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-from-parse5":"^7.0.0","parse5":"^6.0.0","unified":"^10.0.0"},"scripts":{"build":"rimraf \"lib/**/*.d.ts\" && tsc && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"8524f7865482e495f7eec4715694d4b9ffebe591","_id":"rehype-parse@8.0.4","_nodeVersion":"17.4.0","_npmVersion":"8.3.1","dist":{"shasum":"3d17c9ff16ddfef6bbcc8e6a25a99467b482d688","size":12930,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-8.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-8.0.4.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_8.0.4_1643452540901_0.7173079635579729"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-29T10:36:59.191Z","publish_time":1643452541057,"_cnpm_publish_time":1643452541057},"8.0.3":{"name":"rehype-parse","version":"8.0.3","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-from-parse5":"^7.0.0","parse5":"^6.0.0","unified":"^10.0.0"},"scripts":{"build":"rimraf \"lib/**/*.d.ts\" && tsc && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"cbbcf16672397e1dbbd628dcdbe896e85ba6e00d","_id":"rehype-parse@8.0.3","_nodeVersion":"16.6.1","_npmVersion":"7.21.1","dist":{"shasum":"a1947132a08a930d0c2b6fd2b3dbcc137457c07a","size":11564,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-8.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-8.0.3.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_8.0.3_1630413441337_0.4031339462090422"},"_hasShrinkwrap":false,"publish_time":1630413441448,"_cnpm_publish_time":1630413441448},"8.0.2":{"name":"rehype-parse","version":"8.0.2","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-from-parse5":"^7.0.0","parse5":"^6.0.0","unified":"^10.0.0"},"scripts":{"build":"rimraf \"lib/**/*.d.ts\" && tsc && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"_id":"rehype-parse@8.0.2","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"shasum":"8e8ebe6bff33521a446eacce818a49848d0c1b46","size":11565,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-8.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-8.0.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_8.0.2_1628435232113_0.6511734266964764"},"_hasShrinkwrap":false,"publish_time":1628435232322,"_cnpm_publish_time":1628435232322},"8.0.1":{"name":"rehype-parse","version":"8.0.1","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-from-parse5":"^7.0.0","parse5":"^6.0.0","unified":"^10.0.0"},"scripts":{"build":"rimraf \"lib/**/*.d.ts\" && tsc && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"_id":"rehype-parse@8.0.1","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"ac7e061ee68a278ea9184714334f666faf168909","size":11563,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-8.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-8.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_8.0.1_1627665307519_0.8237058496690683"},"_hasShrinkwrap":false,"publish_time":1627665307738,"_cnpm_publish_time":1627665307738},"8.0.0":{"name":"rehype-parse","version":"8.0.0","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-from-parse5":"^7.0.0","parse5":"^6.0.0","unified":"^10.0.0"},"scripts":{"build":"rimraf \"lib/**/*.d.ts\" && tsc && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"_id":"rehype-parse@8.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"49695c4a78e313b8046288567bfba37f28f92b83","size":11567,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-8.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_8.0.0_1627660266958_0.8796137317198649"},"_hasShrinkwrap":false,"publish_time":1627660267107,"_cnpm_publish_time":1627660267107},"7.0.1":{"name":"rehype-parse","version":"7.0.1","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"https://github.com/rehypejs/rehype/tree/main/packages/rehype-parse"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"types":"types/index.d.ts","dependencies":{"hast-util-from-parse5":"^6.0.0","parse5":"^6.0.0"},"xo":false,"_id":"rehype-parse@7.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.5","dist":{"shasum":"58900f6702b56767814afc2a9efa2d42b1c90c57","size":8618,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-7.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-7.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_7.0.1_1592744413864_0.26881842276741463"},"_hasShrinkwrap":false,"publish_time":1592744414056,"_cnpm_publish_time":1592744414056},"7.0.0":{"name":"rehype-parse","version":"7.0.0","description":"rehype plugin to parse HTML","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"https://github.com/rehypejs/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"types":"types/index.d.ts","dependencies":{"hast-util-from-parse5":"^6.0.0","parse5":"^6.0.0"},"xo":false,"_id":"rehype-parse@7.0.0","_nodeVersion":"14.0.0","_npmVersion":"6.14.5","dist":{"shasum":"7a56fadc0a7248572398c458d2aebf4378339965","size":8534,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-7.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_7.0.0_1591624752661_0.019013222054823142"},"_hasShrinkwrap":false,"publish_time":1591624752884,"_cnpm_publish_time":1591624752884},"6.0.2":{"name":"rehype-parse","version":"6.0.2","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"https://github.com/rehypejs/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"hast-util-from-parse5":"^5.0.0","parse5":"^5.0.0","xtend":"^4.0.0"},"xo":false,"_id":"rehype-parse@6.0.2","_nodeVersion":"13.0.1","_npmVersion":"6.13.0","dist":{"shasum":"aeb3fdd68085f9f796f1d3137ae2b85a98406964","size":8161,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-6.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-6.0.2.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_6.0.2_1573331234549_0.7844354787744479"},"_hasShrinkwrap":false,"publish_time":1573331234658,"_cnpm_publish_time":1573331234658},"6.0.1":{"name":"rehype-parse","version":"6.0.1","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"https://github.com/rehypejs/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"hast-util-from-parse5":"^5.0.0","parse5":"^5.0.0","xtend":"^4.0.1"},"xo":false,"_id":"rehype-parse@6.0.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.2","dist":{"shasum":"a5401d7f4144d5e17cbb69be11f05a2a7ba87e27","size":8002,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-6.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-6.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_6.0.1_1561990121236_0.9601402661374223"},"_hasShrinkwrap":false,"publish_time":1561990121380,"_cnpm_publish_time":1561990121380},"6.0.0":{"name":"rehype-parse","version":"6.0.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"https://github.com/rehypejs/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"hast-util-from-parse5":"^5.0.0","parse5":"^5.0.0","xtend":"^4.0.1"},"xo":false,"_id":"rehype-parse@6.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"f681555f2598165bee2c778b39f9073d17b16bca","size":7581,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-6.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_6.0.0_1542484612859_0.5081372276629763"},"_hasShrinkwrap":false,"publish_time":1542484612990,"_cnpm_publish_time":1542484612990},"5.0.0":{"name":"rehype-parse","version":"5.0.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"https://github.com/rehypejs/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js","errors.json"],"dependencies":{"hast-util-from-parse5":"^4.0.0","parse5":"^5.0.0","xtend":"^4.0.1"},"xo":false,"_id":"rehype-parse@5.0.0","_npmVersion":"6.2.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"a103e2d9ee1b3a0dba9223e6f73623b8396e3682","size":7021,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-5.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse_5.0.0_1531861079855_0.7002116621939491"},"_hasShrinkwrap":false,"publish_time":1531861079937,"_cnpm_publish_time":1531861079937},"4.1.0":{"name":"rehype-parse","version":"4.1.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/rehypejs/rehype","repository":{"type":"git","url":"https://github.com/rehypejs/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js"],"dependencies":{"hast-util-from-parse5":"^2.0.1","parse5":"^4.0.0","xtend":"^4.0.1"},"xo":false,"_id":"rehype-parse@4.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"bb46fcc213205527bc4a0d362f1906c8b1ff0814","size":1729,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-4.1.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse-4.1.0.tgz_1516544038018_0.8290818631649017"},"directories":{},"publish_time":1516544040091,"_hasShrinkwrap":false,"_cnpm_publish_time":1516544040091},"4.0.0":{"name":"rehype-parse","version":"4.0.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/wooorm/rehype","repository":{"type":"git","url":"https://github.com/wooorm/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/wooorm/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js"],"dependencies":{"hast-util-from-parse5":"^2.0.1","parse5":"^3.0.0","xtend":"^4.0.1"},"xo":false,"_id":"rehype-parse@4.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"a0a35e02d34fe5e84269881c1cd92d78a6987004","size":1728,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-4.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-parse-4.0.0.tgz_1497779629944_0.005728259216994047"},"directories":{},"publish_time":1497779630908,"_hasShrinkwrap":false,"_cnpm_publish_time":1497779630908},"3.1.0":{"name":"rehype-parse","version":"3.1.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/wooorm/rehype","repository":{"type":"git","url":"https://github.com/wooorm/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/wooorm/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js"],"dependencies":{"hast-util-from-parse5":"^1.0.0","parse5":"^2.1.5","xtend":"^4.0.1"},"xo":false,"_id":"rehype-parse@3.1.0","scripts":{},"_shasum":"7f5227a597a3f39fc4b938646161539c444ee728","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"7f5227a597a3f39fc4b938646161539c444ee728","size":1727,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-3.1.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rehype-parse-3.1.0.tgz_1488716276620_0.9933400289155543"},"directories":{},"publish_time":1488716277283,"_cnpm_publish_time":1488716277283,"_hasShrinkwrap":false},"3.0.0":{"name":"rehype-parse","version":"3.0.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/wooorm/rehype","repository":{"type":"git","url":"https://github.com/wooorm/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/wooorm/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js"],"dependencies":{"hast-util-from-parse5":"^1.0.0","parse5":"^2.1.5","xtend":"^4.0.1"},"xo":false,"_id":"rehype-parse@3.0.0","scripts":{},"_shasum":"d13c84176b53bf7a479764d99170c8f1d5cee2f2","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"d13c84176b53bf7a479764d99170c8f1d5cee2f2","size":1707,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-3.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rehype-parse-3.0.0.tgz_1487884404370_0.5340421635191888"},"directories":{},"publish_time":1487884404971,"_cnpm_publish_time":1487884404971,"_hasShrinkwrap":false},"2.0.1":{"name":"rehype-parse","version":"2.0.1","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/wooorm/rehype","repository":{"type":"git","url":"https://github.com/wooorm/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/wooorm/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js","lib"],"dependencies":{"hast-util-from-parse5":"^1.0.0","parse5":"^2.1.5"},"_id":"rehype-parse@2.0.1","scripts":{},"_shasum":"12fd08eec6c8dde00d10a0243b59af623e67c5bf","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"12fd08eec6c8dde00d10a0243b59af623e67c5bf","size":1940,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-2.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rehype-parse-2.0.1.tgz_1474131251698_0.5655618186574429"},"directories":{},"publish_time":1474131253571,"_cnpm_publish_time":1474131253571,"_hasShrinkwrap":false},"2.0.0":{"name":"rehype-parse","version":"2.0.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/wooorm/rehype","repository":{"type":"git","url":"https://github.com/wooorm/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/wooorm/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js","lib"],"dependencies":{"hast-util-from-parse5":"^1.0.0","parse5":"^2.1.5"},"_id":"rehype-parse@2.0.0","scripts":{},"_shasum":"53d6c4b746d1c730c0ff23c9aa7186878bf6ac8c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"53d6c4b746d1c730c0ff23c9aa7186878bf6ac8c","size":1937,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-2.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rehype-parse-2.0.0.tgz_1469543890157_0.5627765378449112"},"directories":{},"publish_time":1469543891892,"_cnpm_publish_time":1469543891892,"_hasShrinkwrap":false},"1.0.0":{"name":"rehype-parse","version":"1.0.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/wooorm/rehype","repository":{"type":"git","url":"https://github.com/wooorm/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/wooorm/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js","lib"],"dependencies":{"bail":"^1.0.0","hastscript":"^3.0.0","html-void-elements":"^1.0.0","htmlparser2":"^3.9.1","property-information":"^3.0.0","web-namespaces":"^1.0.0"},"_id":"rehype-parse@1.0.0","scripts":{},"_shasum":"fb3dd6df4cd2e0e7850844511236af89e2d5beca","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.1","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"fb3dd6df4cd2e0e7850844511236af89e2d5beca","size":6526,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-1.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rehype-parse-1.0.0.tgz_1466339551286_0.4948937422595918"},"directories":{},"publish_time":1466339553534,"_cnpm_publish_time":1466339553534,"_hasShrinkwrap":false},"0.0.0":{"name":"rehype-parse","version":"0.0.0","description":"HTML parser for rehype","license":"MIT","keywords":["html","abstract","syntax","tree","ast","parse"],"homepage":"https://github.com/wooorm/rehype","repository":{"type":"git","url":"https://github.com/wooorm/rehype/tree/master/packages/rehype-parse"},"bugs":{"url":"https://github.com/wooorm/rehype/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"engines":{"node":">=0.11.0"},"files":["index.js","lib"],"dependencies":{"bail":"^1.0.0","hastscript":"^3.0.0","html-void-elements":"^1.0.0","htmlparser2":"^3.9.1","property-information":"^3.0.0","web-namespaces":"^1.0.0"},"_id":"rehype-parse@0.0.0","scripts":{},"_shasum":"b9c377f7fac18eec6d25733d0c7228201fe24055","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"b9c377f7fac18eec6d25733d0c7228201fe24055","size":6526,"noattachment":false,"key":"/rehype-parse/-/rehype-parse-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-parse/download/rehype-parse-0.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rehype-parse-0.0.0.tgz_1466338219655_0.5556100658141077"},"directories":{},"publish_time":1466338221993,"_cnpm_publish_time":1466338221993,"_hasShrinkwrap":false}},"readme":"# rehype-parse\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n**[rehype][]** plugin to add support for parsing from HTML.\n\n## Contents\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*   [API](#api)\n    *   [`unified().use(rehypeParse[, options])`](#unifieduserehypeparse-options)\n    *   [`ErrorCode`](#errorcode)\n    *   [`ErrorSeverity`](#errorseverity)\n    *   [`Options`](#options)\n*   [Examples](#examples)\n    *   [Example: fragment versus document](#example-fragment-versus-document)\n    *   [Example: whitespace around and inside `<html>`](#example-whitespace-around-and-inside-html)\n    *   [Example: parse errors](#example-parse-errors)\n*   [Syntax](#syntax)\n*   [Syntax tree](#syntax-tree)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [Sponsor](#sponsor)\n*   [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([rehype][]) plugin that defines how to take HTML\nas input and turn it into a syntax tree.\nWhen it’s used, HTML can be parsed and other rehype plugins can be used after\nit.\n\nSee [the monorepo readme][rehype] for info on what the rehype ecosystem is.\n\n## When should I use this?\n\nThis plugin adds support to unified for parsing HTML.\nIf you also need to serialize HTML, you can alternatively use\n[`rehype`][rehype-core], which combines unified, this plugin, and\n[`rehype-stringify`][rehype-stringify].\n\nWhen you are in a browser, trust your content, don’t need positional info, and\nvalue a smaller bundle size, you can use [`rehype-dom-parse`][rehype-dom-parse]\ninstead.\n\nIf you don’t use plugins and want to access the syntax tree, you can directly\nuse [`hast-util-from-html`][hast-util-from-html], which is used inside this\nplugin.\nrehype focusses on making it easier to transform content by abstracting such\ninternals away.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install rehype-parse\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport rehypeParse from 'https://esm.sh/rehype-parse@9'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import rehypeParse from 'https://esm.sh/rehype-parse@9?bundle'\n</script>\n```\n\n## Use\n\nSay we have the following module `example.js`:\n\n```js\nimport rehypeParse from 'rehype-parse'\nimport rehypeRemark from 'rehype-remark'\nimport remarkStringify from 'remark-stringify'\nimport {unified} from 'unified'\n\nconst file = await unified()\n  .use(rehypeParse)\n  .use(rehypeRemark)\n  .use(remarkStringify)\n  .process('<h1>Hello, world!</h1>')\n\nconsole.log(String(file))\n```\n\n…running that with `node example.js` yields:\n\n```markdown\n# Hello, world!\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is [`rehypeParse`][api-rehype-parse].\n\n### `unified().use(rehypeParse[, options])`\n\nPlugin to add support for parsing from HTML.\n\n###### Parameters\n\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n\n###### Returns\n\nNothing (`undefined`).\n\n### `ErrorCode`\n\nKnown names of [parse errors][parse-errors] (TypeScript type).\n\nFor a bit more info on each error, see\n[`hast-util-from-html`][hast-util-from-html-errors].\n\n###### Type\n\n```ts\ntype ErrorCode =\n  | 'abandonedHeadElementChild'\n  | 'abruptClosingOfEmptyComment'\n  | 'abruptDoctypePublicIdentifier'\n  | 'abruptDoctypeSystemIdentifier'\n  | 'absenceOfDigitsInNumericCharacterReference'\n  | 'cdataInHtmlContent'\n  | 'characterReferenceOutsideUnicodeRange'\n  | 'closingOfElementWithOpenChildElements'\n  | 'controlCharacterInInputStream'\n  | 'controlCharacterReference'\n  | 'disallowedContentInNoscriptInHead'\n  | 'duplicateAttribute'\n  | 'endTagWithAttributes'\n  | 'endTagWithTrailingSolidus'\n  | 'endTagWithoutMatchingOpenElement'\n  | 'eofBeforeTagName'\n  | 'eofInCdata'\n  | 'eofInComment'\n  | 'eofInDoctype'\n  | 'eofInElementThatCanContainOnlyText'\n  | 'eofInScriptHtmlCommentLikeText'\n  | 'eofInTag'\n  | 'incorrectlyClosedComment'\n  | 'incorrectlyOpenedComment'\n  | 'invalidCharacterSequenceAfterDoctypeName'\n  | 'invalidFirstCharacterOfTagName'\n  | 'misplacedDoctype'\n  | 'misplacedStartTagForHeadElement'\n  | 'missingAttributeValue'\n  | 'missingDoctype'\n  | 'missingDoctypeName'\n  | 'missingDoctypePublicIdentifier'\n  | 'missingDoctypeSystemIdentifier'\n  | 'missingEndTagName'\n  | 'missingQuoteBeforeDoctypePublicIdentifier'\n  | 'missingQuoteBeforeDoctypeSystemIdentifier'\n  | 'missingSemicolonAfterCharacterReference'\n  | 'missingWhitespaceAfterDoctypePublicKeyword'\n  | 'missingWhitespaceAfterDoctypeSystemKeyword'\n  | 'missingWhitespaceBeforeDoctypeName'\n  | 'missingWhitespaceBetweenAttributes'\n  | 'missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers'\n  | 'nestedComment'\n  | 'nestedNoscriptInHead'\n  | 'nonConformingDoctype'\n  | 'nonVoidHtmlElementStartTagWithTrailingSolidus'\n  | 'noncharacterCharacterReference'\n  | 'noncharacterInInputStream'\n  | 'nullCharacterReference'\n  | 'openElementsLeftAfterEof'\n  | 'surrogateCharacterReference'\n  | 'surrogateInInputStream'\n  | 'unexpectedCharacterAfterDoctypeSystemIdentifier'\n  | 'unexpectedCharacterInAttributeName'\n  | 'unexpectedCharacterInUnquotedAttributeValue'\n  | 'unexpectedEqualsSignBeforeAttributeName'\n  | 'unexpectedNullCharacter'\n  | 'unexpectedQuestionMarkInsteadOfTagName'\n  | 'unexpectedSolidusInTag'\n  | 'unknownNamedCharacterReference'\n```\n\n### `ErrorSeverity`\n\nError severity (TypeScript type).\n\n*   `0` or `false`\n    — turn the parse error off\n*   `1` or `true`\n    — turn the parse error into a warning\n*   `2`\n    — turn the parse error into an actual error: processing stops\n\n###### Type\n\n```ts\ntype ErrorSeverity = boolean | 0 | 1 | 2\n```\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n> ???? **Note**: this is not an XML parser.\n> It supports SVG as embedded in HTML.\n> It does not support the features available in XML.\n> Passing SVG files might break but fragments of modern SVG should be fine.\n> Use [`xast-util-from-xml`][xast-util-from-xml] to parse XML.\n\n###### Fields\n\n*   `fragment` (`boolean`, default: `false`)\n    — whether to parse as a fragment; by default unopened `html`, `head`, and\n    `body` elements are opened\n*   `emitParseErrors` (`boolean`, default: `false`)\n    — whether to emit [parse errors][parse-errors] while parsing\n*   `space` (`'html'` or `'svg'`, default: `'html'`)\n    — which space the document is in\n*   `verbose` (`boolean`, default: `false`)\n    — add extra positional info about attributes, start tags, and end tags\n*   [`[key in ErrorCode]`][api-error-code]\n    ([`ErrorSeverity`][api-error-severity], default: `1` if\n    `options.emitParseErrors`, otherwise `0`)\n    — configure specific [parse errors][parse-errors]\n\n## Examples\n\n### Example: fragment versus document\n\nThe following example shows the difference between parsing as a document and\nparsing as a fragment:\n\n```js\nimport rehypeParse from 'rehype-parse'\nimport rehypeStringify from 'rehype-stringify'\nimport {unified} from 'unified'\n\nconst doc = '<title>Hi!</title><h1>Hello!</h1>'\n\nconsole.log(\n  String(\n    await unified()\n      .use(rehypeParse, {fragment: true})\n      .use(rehypeStringify)\n      .process(doc)\n  )\n)\n\nconsole.log(\n  String(\n    await unified()\n      .use(rehypeParse, {fragment: false})\n      .use(rehypeStringify)\n      .process(doc)\n  )\n)\n```\n\n…yields:\n\n```html\n<title>Hi!</title><h1>Hello!</h1>\n```\n\n```html\n<html><head><title>Hi!</title></head><body><h1>Hello!</h1></body></html>\n```\n\n> ???? **Note**: observe that when a whole document is expected (second example),\n> missing elements are opened and closed.\n\n### Example: whitespace around and inside `<html>`\n\nThe following example shows how whitespace is handled when around and directly\ninside the `<html>` element:\n\n```js\nimport rehypeParse from 'rehype-parse'\nimport rehypeStringify from 'rehype-stringify'\nimport {unified} from 'unified'\n\nconst doc = `<!doctype html>\n<html lang=en>\n  <head>\n    <title>Hi!</title>\n  </head>\n  <body>\n    <h1>Hello!</h1>\n  </body>\n</html>`\n\nconsole.log(\n  String(await unified().use(rehypeParse).use(rehypeStringify).process(doc))\n)\n```\n\n…yields (where `␠` represents a space character):\n\n```html\n<!doctype html><html lang=\"en\"><head>\n    <title>Hi!</title>\n  </head>\n  <body>\n    <h1>Hello!</h1>\n␠␠\n</body></html>\n```\n\n> ???? **Note**: observe that the line ending before `<html>` is ignored, the line\n> ending and two spaces before `<head>` is moved inside it, and the line ending\n> after `</body>` is moved before it.\n\nThis behavior is described by the HTML standard (see the section 13.2.6.4.1\n“The ‘initial’ insertion mode” and adjacent states) which rehype follows.\n\nThe changes to this meaningless whitespace should not matter, except when\nformatting markup, in which case [`rehype-format`][rehype-format] can be used to\nimprove the source code.\n\n### Example: parse errors\n\nThe following example shows how HTML parse errors can be enabled and configured:\n\n```js\nimport rehypeParse from 'rehype-parse'\nimport rehypeStringify from 'rehype-stringify'\nimport {unified} from 'unified'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await unified()\n  .use(rehypeParse, {\n    emitParseErrors: true, // Emit all.\n    missingWhitespaceBeforeDoctypeName: 2, // Mark one as a fatal error.\n    nonVoidHtmlElementStartTagWithTrailingSolidus: false // Ignore one.\n  })\n  .use(rehypeStringify).process(`<!doctypehtml>\n<title class=\"a\" class=\"b\">Hello…</title>\n<h1/>World!</h1>`)\n\nconsole.log(reporter(file))\n```\n\n…yields:\n\n```html\n1:10-1:10 error   Missing whitespace before doctype name missing-whitespace-before-doctype-name hast-util-from-html\n2:23-2:23 warning Unexpected duplicate attribute         duplicate-attribute                    hast-util-from-html\n\n2 messages (✖ 1 error, ⚠ 1 warning)\n```\n\n> ????‍???? **Info**: messages in unified are warnings instead of errors.\n> Other linters (such as ESLint) almost always use errors.\n> Why?\n> Those tools *only* check code style.\n> They don’t generate, transform, and format code, which is what rehype and\n> unified focus on, too.\n> Errors in unified mean the same as an exception in your JavaScript code: a\n> crash.\n> That’s why we use warnings instead, because we continue checking more HTML and\n> continue running more plugins.\n\n## Syntax\n\nHTML is parsed according to WHATWG HTML (the living standard), which is also\nfollowed by all browsers.\n\n## Syntax tree\n\nThe syntax tree format used in rehype is [hast][].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types [`ErrorCode`][api-error-code],\n[`ErrorSeverity`][api-error-severity], and\n[`Options`][api-options].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `rehype-parse@^9`,\ncompatible with Node.js 16.\n\n## Security\n\nAs **rehype** works on HTML and improper use of HTML can open you up to a\n[cross-site scripting (XSS)][xss] attack, use of rehype can also be unsafe.\nUse [`rehype-sanitize`][rehype-sanitize] to make the tree safe.\n\nUse of rehype plugins could also open you up to other attacks.\nCarefully assess each plugin and the risks involved in using them.\n\nFor info on how to submit a report, see our [security policy][security].\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`rehypejs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## Sponsor\n\nSupport this effort and give back by sponsoring on [OpenCollective][collective]!\n\n<table>\n<tr valign=\"middle\">\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://vercel.com\">Vercel</a><br><br>\n  <a href=\"https://vercel.com\"><img src=\"https://avatars1.githubusercontent.com/u/14985020?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://motif.land\">Motif</a><br><br>\n  <a href=\"https://motif.land\"><img src=\"https://avatars1.githubusercontent.com/u/74457950?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.hashicorp.com\">HashiCorp</a><br><br>\n  <a href=\"https://www.hashicorp.com\"><img src=\"https://avatars1.githubusercontent.com/u/761456?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.gitbook.com\">GitBook</a><br><br>\n  <a href=\"https://www.gitbook.com\"><img src=\"https://avatars1.githubusercontent.com/u/7111340?s=256&v=4\" width=\"128\"></a>\n</td>\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.gatsbyjs.org\">Gatsby</a><br><br>\n  <a href=\"https://www.gatsbyjs.org\"><img src=\"https://avatars1.githubusercontent.com/u/12551863?s=256&v=4\" width=\"128\"></a>\n</td>\n</tr>\n<tr valign=\"middle\">\n</tr>\n<tr valign=\"middle\">\n<td width=\"20%\" align=\"center\" rowspan=\"2\" colspan=\"2\">\n  <a href=\"https://www.netlify.com\">Netlify</a><br><br>\n  <!--OC has a sharper image-->\n  <a href=\"https://www.netlify.com\"><img src=\"https://images.opencollective.com/netlify/4087de2/logo/256.png\" width=\"128\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://www.coinbase.com\">Coinbase</a><br><br>\n  <a href=\"https://www.coinbase.com\"><img src=\"https://avatars1.githubusercontent.com/u/1885080?s=256&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://themeisle.com\">ThemeIsle</a><br><br>\n  <a href=\"https://themeisle.com\"><img src=\"https://avatars1.githubusercontent.com/u/58979018?s=128&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://expo.io\">Expo</a><br><br>\n  <a href=\"https://expo.io\"><img src=\"https://avatars1.githubusercontent.com/u/12504344?s=128&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://boostnote.io\">Boost Note</a><br><br>\n  <a href=\"https://boostnote.io\"><img src=\"https://images.opencollective.com/boosthub/6318083/logo/128.png\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://markdown.space\">Markdown Space</a><br><br>\n  <a href=\"https://markdown.space\"><img src=\"https://images.opencollective.com/markdown-space/e1038ed/logo/128.png\" width=\"64\"></a>\n</td>\n<td width=\"10%\" align=\"center\">\n  <a href=\"https://www.holloway.com\">Holloway</a><br><br>\n  <a href=\"https://www.holloway.com\"><img src=\"https://avatars1.githubusercontent.com/u/35904294?s=128&v=4\" width=\"64\"></a>\n</td>\n<td width=\"10%\"></td>\n<td width=\"10%\"></td>\n</tr>\n<tr valign=\"middle\">\n<td width=\"100%\" align=\"center\" colspan=\"8\">\n  <br>\n  <a href=\"https://opencollective.com/unified\"><strong>You?</strong></a>\n  <br><br>\n</td>\n</tr>\n</table>\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/rehypejs/rehype/workflows/main/badge.svg\n\n[build]: https://github.com/rehypejs/rehype/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype.svg\n\n[coverage]: https://codecov.io/github/rehypejs/rehype\n\n[downloads-badge]: https://img.shields.io/npm/dm/rehype-parse.svg\n\n[downloads]: https://www.npmjs.com/package/rehype-parse\n\n[size-badge]: https://img.shields.io/bundlejs/size/rehype-parse\n\n[size]: https://bundlejs.com/?q=rehype-parse\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/rehypejs/rehype/discussions\n\n[security]: https://github.com/rehypejs/.github/blob/main/security.md\n\n[health]: https://github.com/rehypejs/.github\n\n[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[license]: https://github.com/rehypejs/rehype/blob/main/license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[unified]: https://github.com/unifiedjs/unified\n\n[rehype]: https://github.com/rehypejs/rehype\n\n[hast]: https://github.com/syntax-tree/hast\n\n[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n\n[typescript]: https://www.typescriptlang.org\n\n[hast-util-from-html]: https://github.com/syntax-tree/hast-util-from-html\n\n[hast-util-from-html-errors]: https://github.com/syntax-tree/hast-util-from-html#optionskey-in-errorcode\n\n[xast-util-from-xml]: https://github.com/syntax-tree/xast-util-from-xml\n\n[rehype-dom-parse]: https://github.com/rehypejs/rehype-dom/tree/main/packages/rehype-dom-parse\n\n[rehype-format]: https://github.com/rehypejs/rehype-format\n\n[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize\n\n[parse-errors]: https://html.spec.whatwg.org/multipage/parsing.html#parse-errors\n\n[rehype-core]: ../rehype/\n\n[rehype-stringify]: ../rehype-stringify/\n\n[api-error-code]: #errorcode\n\n[api-error-severity]: #errorseverity\n\n[api-options]: #options\n\n[api-rehype-parse]: #unifieduserehypeparse-options\n","_attachments":{},"homepage":"https://github.com/rehypejs/rehype","bugs":{"url":"https://github.com/rehypejs/rehype/issues"},"license":"MIT"}