Skip to content

Commit

Permalink
re-fix emoji plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed Mar 15, 2018
1 parent c37ef1f commit 05f6720
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions v7/emoji/README.md
@@ -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/

Expand Down
2 changes: 1 addition & 1 deletion v7/emoji/emoji.plugin
Expand Up @@ -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
2 changes: 1 addition & 1 deletion v7/emoji/emoji.py
Expand Up @@ -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",
Expand Down

0 comments on commit 05f6720

Please sign in to comment.