Skip to content

Commit

Permalink
feat(emoji): add emoji support
Browse files Browse the repository at this point in the history
Add unicode emoji support to showdown. To enable this feature,
use `emoji: true` option. A list of supported emojis is
available here: https://github.com/showdownjs/showdown/wiki/Emojis

Closes #448
  • Loading branch information
tivie committed Oct 24, 2017
1 parent 61929bb commit 5b8f1d3
Show file tree
Hide file tree
Showing 21 changed files with 2,494 additions and 7 deletions.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -345,7 +345,7 @@ var defaultOptions = showdown.getDefaultOptions();
Showdown will replace `{u}` with the username. Only applies if ghMentions option is enabled.
Example: `@tivie` with ghMentionsOption set to `//mysite.com/{u}/profile` will result in `<a href="//mysite.com/tivie/profile">@tivie</a>`
* **encodeEmails**: (boolean) [default true] Enables e-mail addresses encoding through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities. (since v1.6.1)
* **encodeEmails**: (boolean) [default true] Enable e-mail addresses encoding through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities. (since v1.6.1)
NOTE: Prior to version 1.6.1, emails would always be obfuscated through dec and hex encoding.
Expand All @@ -354,6 +354,9 @@ var defaultOptions = showdown.getDefaultOptions();
* **backslashEscapesHTMLTags**: (boolean) [default false] Support for HTML Tag escaping. ex: `\<div>foo\</div>` **(since v1.7.2)**
* **emoji**: (boolean) [default false] Enable emoji support. Ex: `this is a :smile: emoji`
For more info on available emojis, see https://github.com/showdownjs/showdown/wiki/Emojis **(since v.1.8.0)**
**NOTE**: Please note that until **version 1.6.0**, all of these options are ***DISABLED*** by default in the cli tool.
## Flavors
Expand Down

1 comment on commit 5b8f1d3

@estuardolh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work

Please sign in to comment.