mirror of https://github.com/zulip/zulip.git
be45809253
We add this API to emoji.js, so that markdown doesn't need to look at internal data structures (or even need to understand any kind of record format for results). Here are the functions: get_realm_emoji_url() get_emoji_name() get_emoji_codepoint() We use the API now in markdown, which eliminates the need for the markdown parser to require the emoji JSON file. Each function has a simple docstring: get_emoji_name('1f384') === 'holiday_tree' get_emoji_codepoint('avocado') === '1f951' get_realm_emoji_url('shrug') === '/user_avatars/2/emoji/images/31.png' Also we have simple test coverage for the API (including tests that verify the docstrings). |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.eslintrc.json | ||
.gitignore | ||
favicon.ico |