An open API service indexing awesome lists of open source software.

https://github.com/stamat/marked-github-emoji

marked extension to parse GitHub-style shortcodes into native system emojis
https://github.com/stamat/marked-github-emoji

emoji gemoji github markdown marked marked-extension shortcode

Last synced: about 22 hours ago
JSON representation

marked extension to parse GitHub-style shortcodes into native system emojis

Awesome Lists containing this project

README

          

# marked-github-emoji [![npm version](https://img.shields.io/npm/v/marked-github-emoji)](https://www.npmjs.com/package/marked-github-emoji)

A lightweight, zero-dependency `marked` extension to parse GitHub-style shortcodes into native system emojis.

Cause I just want emoji shortcodes that I'm used to in my MDs...

`emojis.json` emoji dictionary is generated directly from `https://api.github.com/emojis` and `https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json` using the `npm run generate-dict` script.

Support for legendary :shipit:, :suspect:, :trollface:, :octocat:, :atom: (my good old friend 😢), :electron:, etc... that get rendered as an image.

## Installation

```bash
npm install marked-github-emoji
```

## Usage

```javascript
import { marked } from "marked";
import { markedGithubEmoji } from "marked-github-emoji";

marked.use(markedGithubEmoji());

const html = marked.parse("Hello :rocket: :+1:");
//

Hello 🚀 👍


```

Hi! :wave: Bye! :wave:

## License

MIT