Skip to content
Permalink
Browse files
re-fix emoji plugin
  • Loading branch information
ralsina committed Mar 15, 2018
1 parent c37ef1f commit 05f672048dc42f68f550f5e685d2086178ef3a18
Showing with 7 additions and 5 deletions.
  1. +5 −3 v7/emoji/README.md
  2. +1 −1 v7/emoji/emoji.plugin
  3. +1 −1 v7/emoji/emoji.py
@@ -1,15 +1,17 @@
Plugin to embed emojis in restructuredText.

Usage::
Usage:

```
I give this plugin a :emoji:`+1`
```

And yes, I know the syntax is annoying but :+1: is invalid restructuredText syntax.

An alternative is to just use emojify.js in your templates.

The emojis are **not** shipped with this plugin, they are provided by http://tortue.me
provided for free by [Buttflare.](http://buttflare.com)
The emojis are **not** shipped with this plugin, they are provided by emojify
provided for free by CloudFlare.

For a full list of emojis, check http://www.emoji-cheat-sheet.com/

@@ -9,6 +9,6 @@ MinVersion = 7.4.0

[Documentation]
Author = Roberto Alsina
Version = 0.4
Version = 0.4.1
Website = http://plugins.getnikola.com/#emoji
Description = Emoji role for restructured text
@@ -935,7 +935,7 @@ def apply(self, **kwargs):
refname = ref['refname']
if refname in to_handle:
node = nodes.image(
uri='http://www.tortue.me/emoji/{0}.png'.format(refname),
uri='https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/images/basic/{0}.png'.format(refname)
alt=refname,
classes=['emoji'],
height="24px",

0 comments on commit 05f6720

Please sign in to comment.