Emoji alias not parsed in links #5787

Closed
opened 2025-11-02 06:36:00 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @rodolpheh on GitHub (Jul 26, 2020).

Description

When using an emoji alias in an inline link, it is not displayed as an emoji but keeps its alias. The test page created shows the result of emoji alias in most cases. The inline link does not show an emoji but its alias.

Screenshots

image

Originally created by @rodolpheh on GitHub (Jul 26, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.13.0+dev-322-g54513452a docker version - Git version: - Operating system: Docker on Arch - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) : https://try.gitea.io/toc-test/emoji-markdown-tests - [ ] No - [ ] Not relevant - Log gist: ## Description When using an emoji alias in an inline link, it is not displayed as an emoji but keeps its alias. The test page created shows the result of emoji alias in most cases. The inline link does not show an emoji but its alias. ## Screenshots ![image](https://user-images.githubusercontent.com/4491499/88483170-6537f000-cf66-11ea-9963-06f78daa20c4.png)
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 06:36:00 -06:00
Author
Owner

@mrsdizzie commented on GitHub (Jul 26, 2020):

Our renderers intentionally ignore existing links for modifying text so you would need to just use the real character you want instead of an alias. If it is something being created through an issue/wiki editor on our site it should give a dropdown menu to insert the real character if typing out an alias.

https://github.com/go-gitea/gitea/blob/master/modules/markup/html.go#L357

@mrsdizzie commented on GitHub (Jul 26, 2020): Our renderers intentionally ignore existing links for modifying text so you would need to just use the real character you want instead of an alias. If it is something being created through an issue/wiki editor on our site it should give a dropdown menu to insert the real character if typing out an alias. https://github.com/go-gitea/gitea/blob/master/modules/markup/html.go#L357
Author
Owner

@silverwind commented on GitHub (Jul 26, 2020):

Pushed that repo to GH, it seems they do render emoji tokens in links. Otherwise, output seems to match ours:

https://github.com/silverwind/emoji-markdown-tests

@silverwind commented on GitHub (Jul 26, 2020): Pushed that repo to GH, it seems they do render emoji tokens in links. Otherwise, output seems to match ours: https://github.com/silverwind/emoji-markdown-tests
Author
Owner

@stale[bot] commented on GitHub (Oct 4, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Oct 4, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5787