0.0
No commit activity in last 3 years
No release in over 3 years
Rails gem which adds emoji parsing to markdown
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.1.0

Runtime

>= 3.1.0
>= 2.0
 Project Readme

CN Markdown Emoji for Rails

CN Markdown Emoji is fork from Markdown Emojihttps://github.com/elm-city-craftworks/md_emoji

Installation

Add the following line to your Gemfile

gem 'cn_md_emoji'

Using

When creating a new markdown renderer, just use CnMdEmoji::Render

markdown = Redcarpet::Markdown.new(CnMdEmoji::Render, :no_intra_emphasis => true)

markdown.render("Hello [呵呵] world!")

Please take note that due to inconsistencies with the RedCarpet gem, :no_intra_emphasis => true is required for emoji with multiple underscores: :eight_pointed_black_star:

Emoji assets will automatically be picked up by the asset pipeline and made available to your app at:

/assets/emojis/<EMOJI_NAME>.png

For a full list of supported emoji, just run CnMdEmoji::EMOJI in your console.