1.0.0 • Published 2 years ago

briti v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

docsify-twemoji

npm.io

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

npm.io

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.

npm.io

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