TaQini / docsify-twemoji

parse all emoji in style of twitter emoji for docsify

Home Page:http://taqini.space/2020/04/08/docsify-plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docsify-twemoji

Parse twitter style emoji in your docs. Chinese docs: 中文文档

Feature of twemoji

  • parse unicode emoji instead of :tag:
  • large amount of emoji supported even full emoji

Demo

You can see the demo of docsify-twemoji here

The demo site has also installed another plugins docsify-livere

Install

Add the docsify-twemoji plugin to your index.html after docsify.

<!-- twemoji -->
<script src="//cdn.jsdelivr.net/gh/TaQini/docsify-twemoji@master/twemoji.min.js"></script>

Then include the following js code in the appropriate location on the index.html

  window.$docsify = {
      plugins: [
        function (hook, vm) {
          // parse twemoji
          hook.doneEach(function() {
              twemoji.parse(document);
          });
        },
      ]
  }

Usage

You can find various of emoji from here or other place.

Click the button to copy unicode of emoji to your clip board and then paste it into your docs.

For example 😀 will be parsed to happy

About

parse all emoji in style of twitter emoji for docsify

http://taqini.space/2020/04/08/docsify-plugins

License:GNU General Public License v3.0