{"id":13431228,"url":"https://github.com/rehypejs/rehype-minify","last_synced_at":"2025-05-15T11:01:37.324Z","repository":{"id":44658345,"uuid":"66917836","full_name":"rehypejs/rehype-minify","owner":"rehypejs","description":"plugins to minify HTML","archived":false,"fork":false,"pushed_at":"2025-02-19T15:33:01.000Z","size":1321,"stargazers_count":95,"open_issues_count":0,"forks_count":16,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-09T04:01:47.589Z","etag":null,"topics":["html","mangle","minify","optimize","rehype","rehype-plugin","rehype-preset"],"latest_commit_sha":null,"homepage":"https://unifiedjs.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rehypejs.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"unifiedjs","open_collective":"unified"}},"created_at":"2016-08-30T07:35:23.000Z","updated_at":"2025-04-22T18:33:37.000Z","dependencies_parsed_at":"2024-06-09T10:54:22.568Z","dependency_job_id":"b7c4e2f8-95b6-4dfb-b122-ed03a2dc2f86","html_url":"https://github.com/rehypejs/rehype-minify","commit_stats":{"total_commits":249,"total_committers":6,"mean_commits":41.5,"dds":0.02409638554216864,"last_synced_commit":"1c1f8d0ebfe979d3ac23fa8c497173a8862a56f1"},"previous_names":["wooorm/rehype-minify"],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehypejs%2Frehype-minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehypejs%2Frehype-minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehypejs%2Frehype-minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rehypejs%2Frehype-minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rehypejs","download_url":"https://codeload.github.com/rehypejs/rehype-minify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328384,"owners_count":22052632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","mangle","minify","optimize","rehype","rehype-plugin","rehype-preset"],"created_at":"2024-07-31T02:01:01.481Z","updated_at":"2025-05-15T11:01:36.788Z","avatar_url":"https://github.com/rehypejs.png","language":"JavaScript","readme":"# ![rehype-minify][file-logo]\n\n[![Build][badge-build-image]][badge-build-url]\n[![Coverage][badge-coverage-image]][badge-coverage-url]\n\n**[rehype][github-rehype]** plugins to minify HTML.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Presets](#presets)\n* [Plugins](#plugins)\n* [Benchmark](#benchmark)\n* [Security](#security)\n* [Related](#related)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis GitHub repository is a monorepo that contains a couple utilities, ±30\nplugins, and a preset with good and safe default, to minify HTML:\n\n###### In\n\n```html\n\u003c!doctype html\u003e\n\u003chtml lang=\"en-GB\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003cmeta http-equiv=\"content-language\" content=\"en-US\"\u003e\n    \u003cscript src=\"index.js\" type=\"text/javascript\" language=\"javascript\"\u003e\n      alert(true);\n    \u003c/script\u003e\n    \u003clink rel=\"stylesheet\" href=\"index.css\" type=\"text/css\"\u003e\n    \u003ctitle\u003eFoo  \u0026amp;  bar\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003ch1 class=\"foo foo\"\u003ebar  bar\u003c/h1\u003e\n    \u003cp id=\"alfred\" id=\"alfred\"\u003e  \u003cstrong\u003efoo\u003c/strong\u003e \u003cem\u003ebar\u003c/em\u003e \u003c/p\u003e\n    \u003cbutton type=\"BUTTON\" onclick=\"javascript:return false\"\u003eAlpha\u003c/button\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n###### Out\n\n```html\n\u003c!doctypehtml\u003e\u003chtml lang=en\u003e\u003cmeta charset=utf8\u003e\u003cscript src=index.js\u003e\u003c/script\u003e\u003clink href=index.css rel=stylesheet\u003e\u003ctitle\u003eFoo \u0026#38 bar\u003c/title\u003e\u003ch1 class=foo\u003ebar bar\u003c/h1\u003e\u003cp id=alfred\u003e\u003cstrong\u003efoo\u003c/strong\u003e \u003cem\u003ebar\u003c/em\u003e\u003c/p\u003e\u003cbutton onclick=return!1 type=button\u003eAlpha\u003c/button\u003e\n```\n\n## When should I use this?\n\nThis project is useful when you want to improve the size of HTML documents.\nIt’s particularly useful when you’re already using rehype (and remark?) to\nprocess HTML.\n\n## Presets\n\nPresets are combinations of plugins.\nOne preset is maintained here:\n\n* [`rehype-preset-minify`][github-rehype-preset-minify]\n  — preset to minify and mangle HTML\n\n## Plugins\n\nThe following plugins maintained here are included in the above preset.\n\n\u003c!--\n  👉 **Note**: the following list is automatically generated.\n--\u003e\n\n\u003c!--plugins-core start--\u003e\n\n* [`rehype-minify-attribute-whitespace`](./packages/rehype-minify-attribute-whitespace)\n* [`rehype-minify-css-style`](./packages/rehype-minify-css-style)\n* [`rehype-minify-enumerated-attribute`](./packages/rehype-minify-enumerated-attribute)\n* [`rehype-minify-event-handler`](./packages/rehype-minify-event-handler)\n* [`rehype-minify-javascript-script`](./packages/rehype-minify-javascript-script)\n* [`rehype-minify-javascript-url`](./packages/rehype-minify-javascript-url)\n* [`rehype-minify-json-script`](./packages/rehype-minify-json-script)\n* [`rehype-minify-language`](./packages/rehype-minify-language)\n* [`rehype-minify-media-attribute`](./packages/rehype-minify-media-attribute)\n* [`rehype-minify-meta-color`](./packages/rehype-minify-meta-color)\n* [`rehype-minify-meta-content`](./packages/rehype-minify-meta-content)\n* [`rehype-minify-style-attribute`](./packages/rehype-minify-style-attribute)\n* [`rehype-minify-whitespace`](./packages/rehype-minify-whitespace)\n* [`rehype-normalize-attribute-value-case`](./packages/rehype-normalize-attribute-value-case)\n* [`rehype-remove-comments`](./packages/rehype-remove-comments)\n* [`rehype-remove-duplicate-attribute-values`](./packages/rehype-remove-duplicate-attribute-values)\n* [`rehype-remove-empty-attribute`](./packages/rehype-remove-empty-attribute)\n* [`rehype-remove-external-script-content`](./packages/rehype-remove-external-script-content)\n* [`rehype-remove-meta-http-equiv`](./packages/rehype-remove-meta-http-equiv)\n* [`rehype-remove-script-type-javascript`](./packages/rehype-remove-script-type-javascript)\n* [`rehype-remove-style-type-css`](./packages/rehype-remove-style-type-css)\n* [`rehype-sort-attribute-values`](./packages/rehype-sort-attribute-values)\n* [`rehype-sort-attributes`](./packages/rehype-sort-attributes)\n\n\u003c!--plugins-core end--\u003e\n\nThe following plugins are not included in the preset as they are potentially\n**dangerous**, can make sites slower in certain cases, or need extra\nconfiguration.\nRead their readmes before using:\n\n\u003c!--\n  👉 **Note**: the following list is automatically generated.\n--\u003e\n\n\u003c!--plugins-other start--\u003e\n\n* [`rehype-concat-css-style`](./packages/rehype-concat-css-style)\n* [`rehype-concat-javascript`](./packages/rehype-concat-javascript)\n* [`rehype-css-to-top`](./packages/rehype-css-to-top)\n* [`rehype-javascript-to-bottom`](./packages/rehype-javascript-to-bottom)\n* [`rehype-minify-url`](./packages/rehype-minify-url)\n* [`rehype-prevent-favicon-request`](./packages/rehype-prevent-favicon-request)\n\n\u003c!--plugins-other end--\u003e\n\nAlso: pass\n[`allowDangerousCharacters` to `rehype-stringify`][github-rehype-stringify]\nif you trust your content.\n\n## Benchmark\n\nHere’s a benchmark comparing the results from\n[`html-minifier`][github-html-minifier]\nand `rehype-minify`.\nTo summarize: differences are negligible, in fact, minifying HTML doesn’t matter\nmuch.\nWhat does matter is using good compressions, such as gzip.\nNote: `html-minifier` sometimes crashes, such as on amazon.\n\n\u003c!--benchmark start--\u003e\n\n\u003ctable\u003e\n\u003cthead\u003e\n  \u003ctr\u003e\n    \u003cth rowspan=\"2\"\u003ename\u003c/th\u003e\n    \u003cth colspan=\"3\"\u003eraw\u003c/th\u003e\n    \u003cth colspan=\"3\"\u003egzip\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth\u003eoriginal\u003c/th\u003e\n    \u003cth\u003erehype-minify\u003c/th\u003e\n    \u003cth\u003ehtml-minifier\u003c/th\u003e\n    \u003cth\u003eoriginal\u003c/th\u003e\n    \u003cth\u003erehype-minify\u003c/th\u003e\n    \u003cth\u003ehtml-minifier\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.amazon.co.uk/\"\u003eamazon\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e567.85KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e5.71%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e💥\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e128.65KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e5.07%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e💥\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.bbc.co.uk/\"\u003ebbc\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e531.54KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e4.70%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e4.58%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e58.09KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e1.85%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e1.96%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://getbootstrap.com/docs/4.4/getting-started/introduction/\"\u003ebootstrap\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e33.96KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e22.36%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e22.82%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e8.12KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e5.17%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e5.36%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://kangax.github.io/compat-table/es6/\"\u003ecompat-table\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e8.67MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e16.34%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e16.74%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e275.06KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e8.26%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e10.06%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://tc39.es/ecma262/\"\u003eecmascript\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e6.62MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e10.86%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e11.56%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e789.66KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e6.39%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e6.60%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://eloquentjavascript.net/20_node.html\"\u003eeloquent\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e80.08KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e6.43%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e6.45%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e19.13KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e1.25%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e1.26%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://github.com\"\u003egithub\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e233.14KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e13.39%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e14.51%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e38.86KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e7.48%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e7.91%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.google.com\"\u003egoogle\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e253.98KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e3.13%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e3.20%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e80.56KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e3.64%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e3.63%\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.theguardian.com\"\u003eguardian\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e765.54KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e6.75%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e8.71%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e112.21KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e3.96%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e4.38%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://html.spec.whatwg.org\"\u003ehtml\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e12.72MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e3.15%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e3.19%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e1.85MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e5.49%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e5.58%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.linkedin.com/\"\u003elinkedin\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e120.77KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e32.29%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e32.34%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e14.4KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e13.99%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e13.91%\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.microsoft.com\"\u003emicrosoft\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e174.26KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e22.44%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e34.12%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e26.45KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e12.96%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e15.45%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.nbc.com\"\u003enbc\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e1.64MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e5.94%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e6.28%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e221.08KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e1.86%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e1.92%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.npmjs.com\"\u003enpm\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e27.98KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e3.03%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e2.61%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e8.28KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e2.22%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e2.01%\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.nytimes.com\"\u003enytimes\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e822.38KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e11.80%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e11.80%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e137.47KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e2.71%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e2.72%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://slack.com\"\u003eslack\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e205.45KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e4.76%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e4.55%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e49.63KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e2.06%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e1.98%\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://stackoverflow.com\"\u003estackoverflow\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e169.8KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e18.64%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e19.10%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e45.4KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e6.42%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e6.67%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://www.vice.com\"\u003evice\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e337.93KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e3.48%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e3.22%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e92.58KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e2.61%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e2.52%\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\" align=\"left\"\u003e\u003ca href=\"https://en.wikipedia.org/wiki/President_of_the_United_States\"\u003ewikipedia\u003c/a\u003e\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e768.18KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e6.08%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e6.76%\u003c/b\u003e\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e144KB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e1.58%\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e\u003cb\u003e1.77%\u003c/b\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003ctfoot\u003e\n  \u003ctr\u003e\n    \u003cth scope=\"row\"\u003etotal\u003c/th\u003e\n    \u003ctd align=\"right\"\u003e34.63MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e31.9MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e31.83MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e4.05MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e3.85MB\u003c/td\u003e\n    \u003ctd align=\"right\"\u003e3.85MB\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/tfoot\u003e\n\u003c/table\u003e\n\n\u003c!--benchmark end--\u003e\n\nHuge differences in results are suspicious and may point to bugs.\n\n💥 — Crash.\n\n## Security\n\nUse of `rehype-preset-minify` is *safe* by default if the tree is already safe.\nAs **rehype** works on HTML and improper use of HTML can open you up to a\n[cross-site scripting (XSS)][wikipedia-xss] attack,\nuse of rehype can also be unsafe.\nUse [`rehype-sanitize`][github-rehype-sanitize] to make the tree safe.\n\nTo further optimize the result disregarding security, use the extra plugins\nlisted above and pass\n[`allowDangerousCharacters` to `rehype-stringify`][github-rehype-stringify].\n\n## Related\n\n* [`rehype-format`](https://github.com/rehypejs/rehype-format)\n  — format HTML\n\n## Contribute\n\nSee [`contributing.md`][health-contributing]\nin\n[`rehypejs/.github`][health]\nfor ways to get started.\nSee [`support.md`][health-support] for ways to get help.\n\nThis project has a [code of conduct][health-coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][file-license] © [Titus Wormer][wooorm]\n\n\u003c!-- Definitions --\u003e\n\n[badge-build-image]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg\n\n[badge-build-url]: https://github.com/rehypejs/rehype-minify/actions\n\n[badge-coverage-image]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg\n\n[badge-coverage-url]: https://codecov.io/github/rehypejs/rehype-minify\n\n[file-license]: license\n\n[file-logo]: https://raw.githubusercontent.com/rehypejs/rehype-minify/6f0f096/logo.svg?sanitize=true\n\n[github-html-minifier]: https://github.com/kangax/html-minifier\n\n[github-rehype]: https://github.com/rehypejs/rehype\n\n[github-rehype-preset-minify]: https://github.com/rehypejs/rehype-minify/tree/main/packages/rehype-preset-minify\n\n[github-rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize\n\n[github-rehype-stringify]: https://github.com/rehypejs/rehype/tree/main/packages/rehype-stringify#api\n\n[health]: https://github.com/rehypejs/.github\n\n[health-coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[health-contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[health-support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[wikipedia-xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n\n[wooorm]: https://wooorm.com\n","funding_links":["https://github.com/sponsors/unifiedjs","https://opencollective.com/unified"],"categories":["JavaScript","Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehypejs%2Frehype-minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frehypejs%2Frehype-minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frehypejs%2Frehype-minify/lists"}