rehype-accessible-emojis
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -22,2 +22,1 @@ /** | ||
export declare const rehypeAccessibleEmojis: (options?: Options) => (ast: NodeWithChildren) => NodeWithChildren; | ||
export default rehypeAccessibleEmojis; |
@@ -83,2 +83,1 @@ "use strict"; | ||
}; | ||
exports.default = exports.rehypeAccessibleEmojis; |
{ | ||
"name": "rehype-accessible-emojis", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Rehype plugin to make emojis accessible, wrapping emojis in <span> with image role and the emojis name in aria-label>", | ||
@@ -5,0 +5,0 @@ "author": "CanRau <cansrau@gmail.com> (https://www.canrau.com)", |
@@ -48,6 +48,6 @@ # rehype-accessible-emojis | ||
import rehype from 'rehype' | ||
import accessibleEmojis from 'rehype-accessible-emojis' | ||
import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis' | ||
rehype() | ||
.use(accessibleEmojis) | ||
.use(rehypeAccessibleEmojis) | ||
.process(vfile.readSync('example.html'), (_, file) => { | ||
@@ -76,3 +76,3 @@ console.log(String(file)) | ||
options: { | ||
rehypePlugins: [require(`rehype-accessible-emojis`)], | ||
rehypePlugins: [require(`rehype-accessible-emojis`).rehypeAccessibleEmojis], | ||
}, | ||
@@ -79,0 +79,0 @@ } |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
8287
103