Skip to content

Commit 21a16a9

Browse files
committed
Make emojis more accessible
1 parent 997d30e commit 21a16a9

3 files changed

Lines changed: 110 additions & 0 deletions

File tree

astro.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import nodeUrl from "node:url";
1616
import util from "node:util";
1717

1818
import mdx from "@astrojs/mdx";
19+
// @ts-expect-error There's no type declaration but it exists.
20+
import remarkA11yEmoji from "@fec/remark-a11y-emoji";
1921
import { addExtension, createFilter, dataToEsm } from "@rollup/pluginutils";
2022
import compress from "astro-compress";
2123
import { walk } from "estree-walker";
@@ -399,6 +401,7 @@ export default <AstroUserConfig>{
399401
themes: { light: "slack-ochin", dark: "slack-dark" },
400402
transformers: [classNamesTransformer, themeTransformer]
401403
},
404+
remarkPlugins: [remarkA11yEmoji],
402405
rehypePlugins: [classNamesPlugin]
403406
},
404407
integrations: [mdx(), optimizeImagesIntegration, compress({ Image: false })],

package-lock.json

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"devDependencies": {
99
"@astrojs/mdx": "^3.1.1",
10+
"@fec/remark-a11y-emoji": "^4.0.2",
1011
"@rollup/pluginutils": "^5.0.2",
1112
"@types/gifsicle": "^5.2.0",
1213
"@types/node": "^20.2.3",

0 commit comments

Comments
 (0)