Render custom emoji in Banzai
Problem to solve
This is part of &1820 and &3966 (closed).
To support custom emoji, we need to make it possible to render them in GitLab Flavored Markdown text. At the moment :fox:
will be rendered as
Further details
All the GitLab Flavored Markdown is being processed in Banzai. And for emoji in particular in lib/banzai/filter/emoji_filter.rb
. This filter should be changed so it recognizes custom emoji as well and it replaces them will the associated image.
It's important to consider the use case of graceful degradation to a text representation, if possible. Since custom emoji will use actual images, so we should at least set the alt
for these images.
Documentation
Necessary to update technical docs for better understanding of how to use it.