Socket
Socket
Sign inDemoInstall

rehype-accessible-emojis

Package Overview
Dependencies
4
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

1

lib/index.d.ts

@@ -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;

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc