{"_id":"@ascensiongamedev/rehype-video","_rev":"3-1a18d1646a8844bd4fe54f1697a641c5","name":"@ascensiongamedev/rehype-video","dist-tags":{"latest":"1.2.6"},"versions":{"1.2.3":{"name":"@ascensiongamedev/rehype-video","version":"1.2.3","description":"Markdown supports video play with `.mp4` and `.mov` URLs.","homepage":"https://github.com/AscensionGameDev/Intersect-Documentation/tree/rehype-video/main","sideEffects":false,"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","author":{"name":"jaywcjlove"},"contributors":[{"name":"lodicolo","url":"https://github.com/lodicolo"}],"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/AscensionGameDev/Intersect-Documentation.git#rehype-video"},"keywords":["rehype","rehype-video","github-video","markdown","javascript","html","ast","unified"],"jest":{"transformIgnorePatterns":["<rootDir>/node_modules/?!(.*)"]},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"dependencies":{"unified":"~10.1.2","unist-util-visit":"~4.1.2"},"devDependencies":{"@types/hast":"^2.3.4","rehype":"~12.0.1","rehype-stringify":"~9.0.3","remark":"~14.0.2","remark-gfm":"~3.0.1","remark-parse":"~10.0.1","remark-rehype":"~10.1.0","tsbb":"~3.7.9","tsc-esm-fix":"~2.18.0"},"scripts":{"watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel && pnpm run fix","fix":"tsc-esm-fix --target='lib' --ext='.js'","type-check":"tsc --noEmit","test":"tsbb test","coverage":"tsbb test --coverage --bail"},"bugs":{"url":"https://github.com/AscensionGameDev/Intersect-Documentation/issues"},"_id":"@ascensiongamedev/rehype-video@1.2.3","_integrity":"sha512-XFrXB3U8okHEOxJcVxqZBQV3b548a8jECqYC3jPCxupLDmUE30YojHppaR9UbznbI4+2dGUeQt0lF87hMCwovg==","_resolved":"/tmp/4f5fe8235f1d2ee0fc32dee3c226623e/ascensiongamedev-rehype-video-1.2.3.tgz","_from":"file:ascensiongamedev-rehype-video-1.2.3.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-XFrXB3U8okHEOxJcVxqZBQV3b548a8jECqYC3jPCxupLDmUE30YojHppaR9UbznbI4+2dGUeQt0lF87hMCwovg==","shasum":"7d7fbb94876748030a0a9eaf7ba831b62df24af9","tarball":"https://registry.npmjs.org/@ascensiongamedev/rehype-video/-/rehype-video-1.2.3.tgz","fileCount":5,"unpackedSize":18277,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAXu+cEzA3Aw0Fwf5ntYd2A4ch3lNwL412BrW6qG/eTRAiEAp/FTfO1QocFzM1haCz7EixeEuxpkErlyh4c94kWqXXI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBUEuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYNhAAgNYuS4lQs6NIs3shv39r4UFHynXokpiCaQMxsVRKCqkrsoSx\r\nk/E3ADkzPS3CR1K6muKFZp1bhp2scZghHzD8JUgjIvxKsqOsNSS1Lb6yQ8ZU\r\nmnwnZQSThJyfHCCwz7/YmbIMM/dpBZMoUZMHhEnXjtAwpwwdADJD6muzv4n+\r\n/zCY0GeUuI+licjhIVhyh4u6jJVoxk21/MdLv8xLPX7CR91bLWJM0wnwafz2\r\nWa1z3049+zCF6tKhv39ZI+vBCt1KatWgistiX37O1I8ae2h/GEX3rAKe6v+4\r\neSQzdiAthO8rHo62uKVFrG7AXlEq03+p2B5KVbc18+9+gMjuUobgTBecs/sl\r\nqNXN08tb3KPhNYaH6r+3rFn0hmGTQ2WKJfvbr14/q2kFRurRspMyOaJkE8/2\r\nCN+u9V4Ijxj47uRYGRn4B31aS28sWOEW+30G1OAF7mgyw9PQ3rcuChBWnfNO\r\nA7CBI+OhE01EoiAUTdkqgtJwqiTyN64yTgCd7iwz3b785Tvp39Z9HuUeXOLX\r\nYDh8SFzEy6mHWoLWvDKHynmOWamxa4cKLb2L8kbui0d6URB1RtROa06Clya0\r\nERdPIrzC6japGWXH1wAeIFrW3e9BTof+/D/rwzACCWucWHcWQHIm+2+pGW2M\r\nTDcYlX5bWaPxixq03QVDys3flKohjeXJcmQ=\r\n=kpVj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pandacoder","email":"pandacoder@pm.me"},"directories":{},"maintainers":[{"name":"pandacoder","email":"pandacoder@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-video_1.2.3_1678065966289_0.5926304738536872"},"_hasShrinkwrap":false},"1.2.4":{"name":"@ascensiongamedev/rehype-video","version":"1.2.4","description":"Markdown supports video play with `.mp4` and `.mov` URLs.","homepage":"https://github.com/AscensionGameDev/Intersect-Documentation/tree/rehype-video/main","sideEffects":false,"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","author":{"name":"jaywcjlove"},"contributors":[{"name":"lodicolo","url":"https://github.com/lodicolo"}],"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/AscensionGameDev/Intersect-Documentation.git#rehype-video"},"keywords":["rehype","rehype-video","github-video","markdown","javascript","html","ast","unified"],"jest":{"transformIgnorePatterns":["<rootDir>/node_modules/?!(.*)"]},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"dependencies":{"unified":"~10.1.2","unist-util-visit":"~4.1.2"},"devDependencies":{"@types/hast":"^2.3.4","rehype":"~12.0.1","rehype-stringify":"~9.0.3","remark":"~14.0.2","remark-gfm":"~3.0.1","remark-parse":"~10.0.1","remark-rehype":"~10.1.0","tsbb":"~3.7.9","tsc-esm-fix":"~2.18.0"},"scripts":{"watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel && pnpm run fix","fix":"tsc-esm-fix --target='lib' --ext='.js'","type-check":"tsc --noEmit","test":"tsbb test","coverage":"tsbb test --coverage --bail"},"bugs":{"url":"https://github.com/AscensionGameDev/Intersect-Documentation/issues"},"_id":"@ascensiongamedev/rehype-video@1.2.4","_integrity":"sha512-HIKuumdxQ3rWaj/phChYr64evOOT3GAP7HIT73W09U+0fOcRquw68+QIGCXWGLHk1qjUHXE55A64Q+seUI4Hjw==","_resolved":"/tmp/c78f6ae0ab0a42100b270415a3181132/ascensiongamedev-rehype-video-1.2.4.tgz","_from":"file:ascensiongamedev-rehype-video-1.2.4.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-HIKuumdxQ3rWaj/phChYr64evOOT3GAP7HIT73W09U+0fOcRquw68+QIGCXWGLHk1qjUHXE55A64Q+seUI4Hjw==","shasum":"da998efd2e015cf3728fb290ec8d49444a8aa38e","tarball":"https://registry.npmjs.org/@ascensiongamedev/rehype-video/-/rehype-video-1.2.4.tgz","fileCount":11,"unpackedSize":30640,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgA4tsyoaxS5Fa9oSegoxKoHRN9VRZEM9MHFIbfjzycAiBORf5AObUQd3uEFjB0zt0WAkTyFIO1y9T0b37enM5YhQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBUH9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBFxAAkSmg8zpEeCwJkOTWgHhpSNzwAL7L2s8kCNv2Rb9msEhHlrBu\r\nVrh3MQesFTYOLgMp1MH1Ktp3P/sEUfNEILnn/k5PjTs0TKXUT+w36Tvq39gk\r\nyBXfvxCoehRxgp0RIVlb/KleLrbRiKFvK82DgiI+Jj3vxc2NXFTlSJVpGs7G\r\n+lGX3Kmh8JGlZ3uGHRtbepi3h683NqqAA0WzXSg/aQOZ65kSb+ApjuHb6dQI\r\n/poC3xKBo7NFlQjRcdFq5n6YmtxpgXmM+SUkaygUV0uttZYd736unjq4zu24\r\nueIlBvWhiwZXRC6IrN5Y3e0NCgs0G2tZGYPvPlO2cTvEcaqnK8H0GCI1RsYA\r\n7l0F1DDikO/50YT16irZmakaiiGjjctnEH7K5ccgB0tQhX4Xl+fQ1Piuy5XL\r\n8T6/v7qqHsAFb3hMaVDD/r5XfYuhpo1p878xo2JCf60MmnahkRW2pkdjXwkY\r\npY/G+PHGfDqFnlwOA+JVmthVWb4hiFxc2VIHQQSjjH2UC1Xt8dRYaLezWfRI\r\nUvmlUhRYlh4HYskaIV11j1qrwSnop9lSvlBDPlt2Pb+tlf7XGWkPf/gbSNQ0\r\n8/5IvecON4rvaNdhK5bKWfryjvo2QJS5EDvWer92Sb2PNpS0Qoa2CIlDPwrE\r\nKU8r09jS+ljgd+KZu7y8DMmiy6aDxUty0o0=\r\n=eEnK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pandacoder","email":"pandacoder@pm.me"},"directories":{},"maintainers":[{"name":"pandacoder","email":"pandacoder@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-video_1.2.4_1678066173428_0.2630241552514594"},"_hasShrinkwrap":false},"1.2.5":{"name":"@ascensiongamedev/rehype-video","version":"1.2.5","description":"Markdown supports video play with `.mp4` and `.mov` URLs.","homepage":"https://github.com/AscensionGameDev/Intersect-Documentation/tree/rehype-video/main","sideEffects":false,"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","author":{"name":"jaywcjlove"},"contributors":[{"name":"lodicolo","url":"https://github.com/lodicolo"}],"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/AscensionGameDev/Intersect-Documentation.git#rehype-video"},"keywords":["rehype","rehype-video","github-video","markdown","javascript","html","ast","unified"],"jest":{"transformIgnorePatterns":["<rootDir>/node_modules/?!(.*)"]},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"dependencies":{"unified":"~10.1.2","unist-util-visit":"~4.1.2"},"devDependencies":{"@types/hast":"^2.3.4","rehype":"~12.0.1","rehype-stringify":"~9.0.3","remark":"~14.0.2","remark-gfm":"~3.0.1","remark-parse":"~10.0.1","remark-rehype":"~10.1.0","tsbb":"~3.7.9","tsc-esm-fix":"~2.18.0"},"scripts":{"watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel && pnpm run fix","fix":"tsc-esm-fix --target='lib' --ext='.js'","type-check":"tsc --noEmit","test":"tsbb test","coverage":"tsbb test --coverage --bail"},"bugs":{"url":"https://github.com/AscensionGameDev/Intersect-Documentation/issues"},"_id":"@ascensiongamedev/rehype-video@1.2.5","_integrity":"sha512-8xSBxztXAOiw2/DdWfbJqDi4/rRCxGccb5JqGhsfFy01eDTKBSX4I4OcmWs9Ht4qb2wg43vcPbC6CQmWUoR71A==","_resolved":"/tmp/3724b8a0f94cea68442d32ddfa994005/ascensiongamedev-rehype-video-1.2.5.tgz","_from":"file:ascensiongamedev-rehype-video-1.2.5.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-8xSBxztXAOiw2/DdWfbJqDi4/rRCxGccb5JqGhsfFy01eDTKBSX4I4OcmWs9Ht4qb2wg43vcPbC6CQmWUoR71A==","shasum":"78b018769c7f18d0907eac404c41f69cc704ef88","tarball":"https://registry.npmjs.org/@ascensiongamedev/rehype-video/-/rehype-video-1.2.5.tgz","fileCount":11,"unpackedSize":30650,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqVh+9dtcCqKyr2RqivjNKPH6EBhmNqdSUAHgOR7oeUAiEAxcWgzwP9K56OHqQZMaxKtt8UMuPy7al/LAaiAZrIa9M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBUr/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDEg/+Lb6mFqoQ/Pia9SYg8X+j36vw99WlFbrZo+ZylAtJ0jUszABN\r\nCqiXtQfDoqmAyMG90jsLS4TkVhLfzXfAPfY2gNpt8LQLBLoWCOemfeIfCmhb\r\nL4gIs7Ky/w+ifRo63ih6Jjtg9ONqL93u0YNwCQwQP3uLJ66PRtzNiP+Ut5rP\r\n6fAGJ8x5/GUSOx4e52zYliBGnViK7VjLwFY73Dlin5u4SRcR/An900n2LNNd\r\n8gZk2jm005rjqT/aFefDV2YXhOJg3xuteydG12WvYnlvYIVYb9Wajgqe+cbh\r\nHLUjQWKkuwgK10LTKpjYCD/Ha+kmSA/28r6vt33+MO0DrvFpTHggGtkUVkyO\r\nCPN8iqTCejuuLjgDh5MjJ9M5ev98CX2bHagmoJ8uhy9WljiureLVFzcN2RMB\r\n5Z4bWK72f9yQGGOGxQOoAO+boFnus5nqPXDdM5cBJBwR8OC3+Rl5QPqklk6J\r\n3sf0pHR/HcMBJ2DqCP6c2uUyM2eSIjBytABpBkEvJpxi6A/aauVrY2Zl+nfv\r\nmEHE62v2vDtvtMItAMLNKspwBpUEnWzBCH3oKk6EaC66Gf1ZaglFZnqOzjqS\r\nbHmx1fIXUu1cDyeW9laNwXXEXsCcv4h1G7ywsD9pvTFUaNt7nEqTCP6oppGB\r\nYIlq2gtFIVKkPZMUjnoqRCBfj1ZRr+786FI=\r\n=fByE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pandacoder","email":"pandacoder@pm.me"},"directories":{},"maintainers":[{"name":"pandacoder","email":"pandacoder@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-video_1.2.5_1678068479245_0.13989748115656853"},"_hasShrinkwrap":false},"1.2.6":{"name":"@ascensiongamedev/rehype-video","version":"1.2.6","description":"Markdown supports video play with `.mp4` and `.mov` URLs.","homepage":"https://github.com/AscensionGameDev/Intersect-Documentation/tree/rehype-video/main","sideEffects":false,"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","author":{"name":"jaywcjlove"},"contributors":[{"name":"lodicolo","url":"https://github.com/lodicolo"}],"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/AscensionGameDev/Intersect-Documentation.git#rehype-video"},"keywords":["rehype","rehype-video","github-video","markdown","javascript","html","ast","unified"],"jest":{"transformIgnorePatterns":["<rootDir>/node_modules/?!(.*)"]},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"dependencies":{"unified":"~10.1.2","unist-util-visit":"~4.1.2"},"devDependencies":{"@types/hast":"^2.3.4","rehype":"~12.0.1","rehype-stringify":"~9.0.3","remark":"~14.0.2","remark-gfm":"~3.0.1","remark-parse":"~10.0.1","remark-rehype":"~10.1.0","tsbb":"~3.7.9","tsc-esm-fix":"~2.18.0"},"scripts":{"watch":"tsbb watch --disable-babel","build":"tsbb build --disable-babel && pnpm run fix","fix":"tsc-esm-fix --target='dist' --ext='.js'","type-check":"tsc --noEmit","test":"tsbb test","coverage":"tsbb test --coverage --bail"},"bugs":{"url":"https://github.com/AscensionGameDev/Intersect-Documentation/issues"},"_id":"@ascensiongamedev/rehype-video@1.2.6","_integrity":"sha512-x5u/WeUf5nsOwMLNiEdPSL+qsnNWInSFObsO5Ta/xN49erF8BAv3oRrHLGAqtZbw1fNb2Xer4aAl9BviNU160w==","_resolved":"/tmp/1d5f0da3fb99a940f95e01429bed4ecb/ascensiongamedev-rehype-video-1.2.6.tgz","_from":"file:ascensiongamedev-rehype-video-1.2.6.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-x5u/WeUf5nsOwMLNiEdPSL+qsnNWInSFObsO5Ta/xN49erF8BAv3oRrHLGAqtZbw1fNb2Xer4aAl9BviNU160w==","shasum":"9615e09093f83ff9bea23112558dbea91358d7b0","tarball":"https://registry.npmjs.org/@ascensiongamedev/rehype-video/-/rehype-video-1.2.6.tgz","fileCount":11,"unpackedSize":30657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ007r9OSJDMpq1oo2jD71MjLPF571pPMdbKZHdTlQrgIhAMp8pWlUyTD2VZhhEyPlRmXs5QOZEQMTtJ6Jq+ZZ/eUh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBWA2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRyg/+JB8gA8aXYdh0Je1gMyLJKpGWlJ+zW6OuOZIdkh7mKboOuvDC\r\nzbxXS4v2a6yYlsWEkoaJMqZ2EnM8nhh4dGMo7jBDfbnrmaflIwyUYSzHKUEP\r\nC/kI7UCl8300dIJ4APZBmk5lB9HCa2rA8rp/kG//32cv9ZdiPhKASA2e7l4V\r\nmlxhSvs7dF5uo599n0KXjNhLqnY3GhT5DP4nJ9dUMWUBPz3gNlCxwKBAP4HL\r\nKMxvRZ+azD4j+I2pAYJcrENMZw0tzY0QOLsDMwxCwZYeIA+4aHzQXOU05Oyy\r\nJF5nMcTN+5ecNyjoNNa25DhhgDmZSoGVyI069WNEXd+aJKEE142O2j6pZIVG\r\ne4Lf02xh/JujzUQBA7B4UKipFHM9nxi2xpysK664NsG5QQs7/YOi6HbpL1RX\r\naKbddrMPGXDdoR2OGV6+F2meGDi2FCgWKPRdu4FccsmHT/HIu2lt1hvdDpHT\r\nukk6m4v6Y3TECoTXr4d9Sq0HirDgNgBd3nRSiVtwTaL6C14S4dLNUl1Ix89j\r\nFQkUu6WGvPET0UBunURdWHUNycUjtqWPY1J6CP+G+/38ZlQgbOgjFD7VkEfu\r\nExxXBlLhPCfS2gFfHD6R6keDgjGQyKd6prppoaw9j/tHpLXVeaiZS0I0UfnE\r\nnNq3p4Fx+i7Re3fNF0UZvv7vtZkHEsp6Pjc=\r\n=aclh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"pandacoder","email":"pandacoder@pm.me"},"directories":{},"maintainers":[{"name":"pandacoder","email":"pandacoder@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-video_1.2.6_1678073910237_0.7665181878498668"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-06T01:26:06.207Z","1.2.3":"2023-03-06T01:26:06.495Z","modified":"2023-03-06T03:38:30.526Z","1.2.4":"2023-03-06T01:29:33.586Z","1.2.5":"2023-03-06T02:07:59.377Z","1.2.6":"2023-03-06T03:38:30.391Z"},"maintainers":[{"name":"pandacoder","email":"pandacoder@pm.me"}],"description":"Markdown supports video play with `.mp4` and `.mov` URLs.","homepage":"https://github.com/AscensionGameDev/Intersect-Documentation/tree/rehype-video/main","keywords":["rehype","rehype-video","github-video","markdown","javascript","html","ast","unified"],"repository":{"type":"git","url":"git+https://github.com/AscensionGameDev/Intersect-Documentation.git#rehype-video"},"contributors":[{"name":"lodicolo","url":"https://github.com/lodicolo"}],"author":{"name":"jaywcjlove"},"bugs":{"url":"https://github.com/AscensionGameDev/Intersect-Documentation/issues"},"license":"MIT","readme":"rehype-video\n===\n\n[![Downloads](https://img.shields.io/npm/dm/rehype-video.svg?style=flat)](https://www.npmjs.com/package/rehype-video)\n[![NPM version](https://img.shields.io/npm/v/rehype-video.svg?style=flat)](https://npmjs.org/package/rehype-video)\n[![Build](https://github.com/jaywcjlove/rehype-video/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/rehype-video/actions/workflows/ci.yml)\n[![Coverage Status](https://jaywcjlove.github.io/rehype-video/badges.svg)](https://jaywcjlove.github.io/rehype-video/lcov-report/)\n[![npm bundle size](https://img.shields.io/bundlephobia/minzip/rehype-video)](https://bundlephobia.com/result?p=rehype-video)\n[![Repo Dependents](https://badgen.net/github/dependents-repo/jaywcjlove/rehype-video)](https://github.com/jaywcjlove/rehype-video/network/dependents)\n\nAdd improved video syntax: links to `.mp4` and `.mov` turn into videos. like [`github video`](https://github.blog/2021-05-13-video-uploads-available-github/) features.\n\nThe following is a sample test of the video preview in GitHub:\n\nhttps://user-images.githubusercontent.com/1680273/138299599-88547edd-859c-44c9-8b52-2cc06f7f2dd3.mov?!#title=Example%20Display\n\n## Installation\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c): Node 12+ is needed to use it and it must be import instead of require.\n\n```bash\nnpm install rehype-video\n```\n\n## Usage\n\n```js\nimport { unified } from 'unified';\nimport remark2rehype from 'remark-rehype';\nimport remarkParse from 'remark-parse';\nimport rehypeVideo from 'rehype-video';\nimport stringify from 'rehype-stringify';\n\nconst string = `\nhttps://files.github.com/001.mp4 hi!\n\nhttps://files.github.com/002.mp4\n\nGood \\`idea\\`!!\n\nhttps://github.com/002.mp4?!#title=Custom%20Title\n`;\n\nconst htmlStr = unified()\n  .use(remarkParse)\n  .use(remark2rehype, { allowDangerousHtml: true })\n  .use(rehypeVideo)\n  .use(stringify)\n  .processSync(string)\n  .toString();\n```\n\nOutput:\n\n```html\n<p>https://files.github.com/001.mp4 hi!</p>\n<details open>\n  <summary>\n    <svg aria-hidden height=\"16\" width=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" class=\"octicon octicon-device-camera-video\"><path fill-rule=\"evenodd\" d=\"M16 3.75a.75.75 0 00-1.136-.643L11 5.425V4.75A1.75 1.75 0 009.25 3h-7.5A1.75 1.75 0 000 4.75v6.5C0 12.216.784 13 1.75 13h7.5A1.75 1.75 0 0011 11.25v-.675l3.864 2.318A.75.75 0 0016 12.25v-8.5zm-5 5.075l3.5 2.1v-5.85l-3.5 2.1v1.65zM9.5 6.75v-2a.25.25 0 00-.25-.25h-7.5a.25.25 0 00-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-4.5z\"></path></svg>\n    <span aria-label=\"Video description 002.mp4\">002.mp4</span>\n    <span class=\"dropdown-caret\"></span>\n  </summary>\n  <video muted controls style=\"max-height:640px;\" src=\"https://github.com/002.mp4\"></video>\n</details>\n<p>Good <code>idea</code>!!</p>\n<details open>\n  <summary>\n    <svg aria-hidden height=\"16\" width=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" class=\"octicon octicon-device-camera-video\"><path fill-rule=\"evenodd\" d=\"M16 3.75a.75.75 0 00-1.136-.643L11 5.425V4.75A1.75 1.75 0 009.25 3h-7.5A1.75 1.75 0 000 4.75v6.5C0 12.216.784 13 1.75 13h7.5A1.75 1.75 0 0011 11.25v-.675l3.864 2.318A.75.75 0 0016 12.25v-8.5zm-5 5.075l3.5 2.1v-5.85l-3.5 2.1v1.65zM9.5 6.75v-2a.25.25 0 00-.25-.25h-7.5a.25.25 0 00-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-4.5z\"></path></svg>\n    <span aria-label=\"Video description Custom Title\">Custom Title</span>\n    <span class=\"dropdown-caret\"></span>\n  </summary>\n  <video muted controls style=\"max-height:640px;\" src=\"https://github.com/002.mp4\"></video>\n</details>\n```\n\n### Example 1\n\n```js\nimport { rehype } from 'rehype';\nimport rehypeVideo from 'rehype-video';\n\nconst mrkStr = `<p>https://github.com/004.mp4</p>`;\nconst htmlStr = rehype()\n  .data('settings', { fragment: true })\n  .use(rehypeVideo, { details: false })\n  .processSync(mrkStr)\n  .toString();\n```\n\nOutput:\n\n```html\n<video muted controls style=\"max-height:640px;\" src=\"https://github.com/004.mp4\"></video>\n```\n\n### Example 2\n\n```js\nimport { rehype } from 'rehype';\nimport rehypeVideo from 'rehype-video';\n\nconst mrkStr = `<p><a href=\"https://github.com/004.mp4\">https://github.com/004.mp4</a></p`;\nconst htmlStr = rehype()\n  .data('settings', { fragment: true })\n  .use(rehypeVideo, { details: false })\n  .processSync(mrkStr)\n  .toString();\n```\n\nOutput:\n\n```html\n<video muted controls style=\"max-height:640px;\" src=\"https://github.com/004.mp4\"></video>\n```\n\n## Custom Title\n\nDefine custom title parameter(E.g: `title=RehypeVideo`) with hash route:\n\n```js\nconst string = `https://github.com/002.mp4?!#title=Custom%20Title`;\nconst htmlStr = unified()\n  .use(remarkParse)\n  .use(remark2rehype, { allowDangerousHtml: true })\n  .use(rehypeVideo)\n  .use(stringify)\n  .processSync(string)\n  .toString();\n```\n\nOutput:\n\n```html\n<details open>\n  <summary>\n    <svg aria-hidden height=\"16\" width=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" class=\"octicon octicon-device-camera-video\"><path fill-rule=\"evenodd\" d=\"M16 3.75a.75.75 0 00-1.136-.643L11 5.425V4.75A1.75 1.75 0 009.25 3h-7.5A1.75 1.75 0 000 4.75v6.5C0 12.216.784 13 1.75 13h7.5A1.75 1.75 0 0011 11.25v-.675l3.864 2.318A.75.75 0 0016 12.25v-8.5zm-5 5.075l3.5 2.1v-5.85l-3.5 2.1v1.65zM9.5 6.75v-2a.25.25 0 00-.25-.25h-7.5a.25.25 0 00-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-4.5z\"></path></svg>\n    <span aria-label=\"Video description Custom Title\">Custom Title</span>\n    <span class=\"dropdown-caret\"></span>\n  </summary>\n  <video muted controls style=\"max-height:640px;\" src=\"https://github.com/002.mp4\"></video>\n</details>\n```\n\n## Options\n\n```ts\nexport declare type RehypeVideoOptions = {\n  /**\n   * URL suffix verification.\n   * @default /\\/(.*)(.mp4|.mov)$/\n   */\n  test?: RegExp;\n  /**\n   * Support `<details>` tag to wrap <video>.\n   * @default true\n   */\n  details?: boolean;\n};\n```\n\n## Related\n\n- [`rehype-attr`](https://github.com/jaywcjlove/rehype-attr) New syntax to add attributes to Markdown.\n- [`rehype-rewrite`](https://github.com/jaywcjlove/rehype-rewrite) Rewrite element with rehype.\n- [`rehype-ignore`](https://github.com/jaywcjlove/rehype-ignore) Ignore content display via HTML comments, Shown in GitHub readme, excluded in HTML.\n- [`rehypejs`](https://github.com/rehypejs/rehype) HTML processor powered by plugins part of the [@unifiedjs](https://github.com/unifiedjs) collective\n- [`remark-parse`](https://www.npmjs.com/package/remark-parse) remark plugin to parse Markdown\n- [`remark-rehype`](https://www.npmjs.com/package/remark-rehype) remark plugin to transform to rehype\n- [`rehype-raw`](https://www.npmjs.com/package/rehype-raw) rehype plugin to reparse the tree (and raw nodes)\n- [`rehype-stringify`](https://www.npmjs.com/package/rehype-stringify) rehype plugin to serialize HTML\n\n## License\n\nMIT © [Kenny Wong](https://github.com/jaywcjlove)\n","readmeFilename":"README.md"}