{"id":15163054,"url":"https://github.com/ashur/eleventy-plugin-emoji-shortcodes","last_synced_at":"2026-01-21T16:37:46.136Z","repository":{"id":50608175,"uuid":"478817858","full_name":"ashur/eleventy-plugin-emoji-shortcodes","owner":"ashur","description":"Transform emoji shortcodes to accessible elements","archived":false,"fork":false,"pushed_at":"2022-07-30T20:44:56.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T17:22:39.314Z","etag":null,"topics":["eleventy","eleventy-plugin","emoji"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-07T03:49:59.000Z","updated_at":"2022-04-08T18:06:15.000Z","dependencies_parsed_at":"2022-09-26T21:21:34.267Z","dependency_job_id":null,"html_url":"https://github.com/ashur/eleventy-plugin-emoji-shortcodes","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashur%2Feleventy-plugin-emoji-shortcodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashur%2Feleventy-plugin-emoji-shortcodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashur%2Feleventy-plugin-emoji-shortcodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashur%2Feleventy-plugin-emoji-shortcodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashur","download_url":"https://codeload.github.com/ashur/eleventy-plugin-emoji-shortcodes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801170,"owners_count":20998339,"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":["eleventy","eleventy-plugin","emoji"],"created_at":"2024-09-27T02:02:44.316Z","updated_at":"2026-01-21T16:37:46.095Z","avatar_url":"https://github.com/ashur.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eleventy-plugin-emoji-shortcodes\n\nTransform [emoji shortcodes](https://emojipedia.org/shortcodes/) to accessible elements.\n\nFor example, the following Markdown:\n\n```markdown\nwho called them “dad jokes” instead of “popcorn”? :drum:\n```\n\nwould be rendered as:\n\n```html\n\u003cp\u003ewho called them “dad jokes” instead of “popcorn”? \u003cspan aria-label=\"drum\" role=\"img\"\u003e🥁\u003c/span\u003e\u003c/p\u003e\n```\n\nTransformation happens after templates are rendered to HTML, so all Eleventy template syntaxes are supported.\n\n\u003e See the [gemoji project](https://github.com/wooorm/gemoji/blob/7.1.0/index.js#L14570) for details on supported shortcode strings.\n\n## Usage\n\nTo install this plugin, run the following command at the root of your Eleventy project:\n\n```shell\nnpm install --save @aaashur/eleventy-plugin-emoji-shortcodes\n```\n\nNext, include the following in your [Eleventy config file](https://www.11ty.dev/docs/config/):\n\n```javascript\nconst emojiShortcodes = require(\"@aaashur/eleventy-plugin-emoji-shortcodes\");\n\nmodule.exports = (eleventyConfig) =\u003e {\n    eleventyConfig.addPlugin(emojiShortcodes);\n};\n```\n\n## Plugin Options\n\n| Option  | Type   |\n| :--     | :--    |\n| `class` | string |\n\n\nTo set a class name (or names), set the `class` option when registering the plugin:\n\n```javascript\neleventyConfig.addPlugin(emojiShortcodes, { class: 'emoji' });\n```\n\n```\n:popcorn:\n```\n\n```html\n\u003cspan aria-label=\"popcorn\" role=\"img\" class=\"emoji\"\u003e🍿\u003c/span\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashur%2Feleventy-plugin-emoji-shortcodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashur%2Feleventy-plugin-emoji-shortcodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashur%2Feleventy-plugin-emoji-shortcodes/lists"}