Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docute-emojify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docute-emojify - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

7

CHANGELOG.md

@@ -7,2 +7,6 @@ # Change Log

## Unreleased
## [0.1.3] - 2017-03-14
### Added
- `emojifyCode` option for transforming aliases inside code blocks.
## [0.1.2] - 2017-03-11

@@ -21,4 +25,5 @@ ### Fixed

[Unreleased]: https://github.com/hkwu/docute-emojify/compare/v0.1.2...HEAD
[Unreleased]: https://github.com/hkwu/docute-emojify/compare/v0.1.3...HEAD
[0.1.3]: https://github.com/hkwu/docute-emojify/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/hkwu/docute-emojify/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/hkwu/docute-emojify/compare/v0.1.0...v0.1.1

7

package.json
{
"name": "docute-emojify",
"version": "0.1.2",
"version": "0.1.3",
"description": "Docute plugin for transforming emoji aliases within Markdown.",

@@ -27,3 +27,3 @@ "keywords": [

"build": "bili --name docute-emojify --module-name docuteEmojify --format umd --compress",
"build:emoji": "node utils/update.js && eslint src/emoji.js --fix",
"update:emoji": "node utils/update.js && eslint src/emoji.js --fix",
"lint": "eslint src",

@@ -44,3 +44,6 @@ "lint:fix": "eslint src --fix",

"got": "^6.7.1"
},
"peerDependencies": {
"docute": "^2.9.0"
}
}

@@ -35,3 +35,3 @@ # docute-emojify

> This is **Markdown** with 💯 emoji support 👌
> This is **Markdown** with 💯 emoji support 👌

@@ -55,3 +55,3 @@ All emoji aliases are scraped from the [gemoji](https://github.com/github/gemoji) repository.

This will replace `:hundo:` with 💯 and `:thunking:` or `:thonk:` with 🤔.
This will replace `:hundo:` with 💯 and `:thunking:` or `:thonk:` with 🤔.

@@ -71,1 +71,28 @@ ### Blacklisting Aliases

This will make `:100:` and `:+1:` render as typed rather than as an emoji character.
### Emojifying Code
By default, aliases found in code formatting (i.e. surrounded by matching backticks) are not transformed. This behaviour can be toggled using the `emojifyCode` option.
```js
docuteEmojify({
emojifyCode: true,
});
```
We will now see
````markdown
See emoji code below `:+1:`
```
:100:
```
````
render as
> See emoji code below `👍`
>
> ```
> 💯
> ```
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc