{"id":15927762,"url":"https://github.com/henrycatalinismith/11tyhype","last_synced_at":"2026-05-20T10:45:28.145Z","repository":{"id":42649435,"uuid":"361396959","full_name":"henrycatalinismith/11tyhype","owner":"henrycatalinismith","description":"Eleventy rehype plugin","archived":false,"fork":false,"pushed_at":"2025-03-10T12:27:54.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-24T10:45:32.001Z","etag":null,"topics":["11ty","11ty-plugin","plugin","rehype"],"latest_commit_sha":null,"homepage":"https://codeberg.org/henrycatalinismith/11tyhype","language":"TypeScript","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/henrycatalinismith.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":"code_of_conduct.md","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,"zenodo":null}},"created_at":"2021-04-25T10:25:49.000Z","updated_at":"2025-03-10T12:27:50.000Z","dependencies_parsed_at":"2025-07-29T10:41:49.851Z","dependency_job_id":"d0b22bfe-58a3-4436-880e-20a2c8fba83c","html_url":"https://github.com/henrycatalinismith/11tyhype","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"b7ec33b94ed137afa420f60d85cf2fdd9146679f"},"previous_names":["hendotcat/11tyhype"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/henrycatalinismith/11tyhype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrycatalinismith%2F11tyhype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrycatalinismith%2F11tyhype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrycatalinismith%2F11tyhype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrycatalinismith%2F11tyhype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henrycatalinismith","download_url":"https://codeload.github.com/henrycatalinismith/11tyhype/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henrycatalinismith%2F11tyhype/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29883111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["11ty","11ty-plugin","plugin","rehype"],"created_at":"2024-10-06T23:04:37.492Z","updated_at":"2026-02-27T03:02:39.695Z","avatar_url":"https://github.com/henrycatalinismith.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 11tyhype\n\n11tyhype is a [rehype] plugin for [Eleventy][11ty].\nIt hooks up rehype as an HTML transform so you can add rehype plugins to your\nEleventy site with less boilerplate.\n\n## Installation\n\n```\nyarn add -D @henrycatalinismith/11tyhype rehype\n```\n\n## Usage\n\nThis example uses [`rehype-accessible-emojis`][rehype-accessible-emojis] to\nimprove emoji accessibility and\n[`rehype-minify-whitespace`][rehype-minify-whitespace] to strip out all the\nwhitespace from the HTML of an Eleventy site.\n\n```javascript\nconst { rehypePlugin } = require(\"@henrycatalinismith/11tyhype\")\nconst accessibleEmojis = require(\"rehype-accessible-emojis\")\nconst minifyWhitespace = require(\"rehype-minify-whitespace\")\n\nmodule.exports = function(eleventyConfig) {\n  eleventyConfig.addPlugin(rehypePlugin, {\n    plugins: [\n      [accessibleEmojis],\n      [minifyWhitespace],\n    ]\n  })\n}\n```\n\n## Options\n\n### `plugins`\n\nThe `plugins` array is a list of rehype plugins to use.\nEach element of the array is an array of parameters that will be passed to\n[rehype's `use()` function][use].\n\n1. The first array element should be the plugin function. In the example above\n   that's `minifyWhitespace`.\n2. The second array element is optional. It's for passing options to plugins.\n\nHere's an example with some options.\nIt's using [`rehype-urls`][rehype-urls], and the second parameter tells the\nplugin to prefix every URL it finds with `https://example.org/`.\n\n```\nconst { rehypePlugin } = require(\"@henrycatalinismith/11tyhype\")\nconst urls = require(\"rehype-urls\")\n\nmodule.exports = function(eleventyConfig) {\n  eleventyConfig.addPlugin(rehypePlugin, {\n    plugins: [\n      [urls, url =\u003e {\n        return `https://example.org/${url.href}`\n      }],\n    ]\n  })\n}\n```\n\n### `id`\n\nIf you have a lot of transforms in your Eleventy build then naming them can be\nhelpful for debugging build problems. So you can optionally pass an `id` string to\n11tyhype and it'll use this value as the name for the transform.\n\n### `verbose`\n\nPass `verbose: true` to the plugin and it'll output a whole bunch of\ninformation about what it's doing. This is mostly useful for debugging. Please\nenable this this option if you're reporting a bug in 11tyhype.\n\n## Error Codes\n\n11tyhype will try to help you set it up properly. If you make a mistake,\nit'll try to help you understand. For some mistakes that it can recognize,\nit'll print a link in the build output pointing at one of these error codes to\nhelp you troubleshoot.\n\n### `no-plugins`\n\nThis error code is generated when you add the plugin to Eleventy without giving\nit any rehype plugins to apply.\n\nDouble check your code against the example at the top of this readme. The\nsecond argument you pass to `eleventyConfig.addPlugin` should be an object with\na property called `plugins`.\n\n### `invalid-plugin`\n\nThis error code is generated when you add the plugin to Eleventy with a mistake\nin the list of `plugins`. The error message will tell you which plugin in your\nlist has the mistake: e.g. if it says `plugin #1 is invalid` then the very first\nplugin in your list is the one that's wrong.\n\nRead the [instructions for the `plugins` option](#plugins) and check that the\nplugin specified by the error message has a rehype plugin function as its first\narray element.\n\n## Contributing\n\n* [Tips][Contributing]\n* [Code of Conduct]\n\n## License\n\n[MIT]\n\n[11ty]: https://www.11ty.dev\n[rehype]: https://github.com/rehypejs/rehype\n[rehype-minify-whitespace]: https://github.com/rehypejs/rehype-minify/tree/main/packages/rehype-minify-whitespace\n[rehype-accessible-emojis]: https://github.com/GaiAma/Coding4GaiAma/tree/HEAD/packages/rehype-accessible-emojis\n[rehype-urls]: https://github.com/brechtcs/rehype-urls\n[use]: https://github.com/unifiedjs/unified#processoruseplugin-options\n[Contributing]:  https://codeberg.org/henrycatalinismith/11tyhype/src/branch/main/contributing.md\n[Code of Conduct]: https://codeberg.org/henrycatalinismith/11tyhype/src/branch/main/code_of_conduct.md\n[MIT]: https://codeberg.org/henrycatalinismith/11tyhype/src/branch/main/license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrycatalinismith%2F11tyhype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenrycatalinismith%2F11tyhype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenrycatalinismith%2F11tyhype/lists"}