forked from forgejo/forgejo
Fix emoji replacements, make emoji images consistent (#12567)
- Fix emoji not being replaced in issue title change text - Make the image attributes consistent, add alt, remove align Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
26bf4c51fb
commit
ee047312a1
5 changed files with 5 additions and 4 deletions
|
@ -255,7 +255,7 @@ func TestRender_emoji(t *testing.T) {
|
|||
//Text that should be turned into or recognized as emoji
|
||||
test(
|
||||
":gitea:",
|
||||
`<p><span class="emoji" aria-label="gitea"><img src="`+setting.StaticURLPrefix+`/img/emoji/gitea.png"/></span></p>`)
|
||||
`<p><span class="emoji" aria-label="gitea"><img alt=":gitea:" src="`+setting.StaticURLPrefix+`/img/emoji/gitea.png"/></span></p>`)
|
||||
|
||||
test(
|
||||
"Some text with 😄 in the middle",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue