Convert custom emoji back to GFM when pasting
What does this MR do?
Correctly convert custom emojis with copying GFM. Fixes #335258 (closed)
Demo
before | after |
---|---|
Screen_Recording_2021-10-13_at_1.28.58_pm | Screen_Recording_2021-10-13_at_1.31.42_pm |
Testing
- Enable
custom_emoji
feature flag -
Create a custom emoji using graphql. The following adds
:iteration:
to gitlab-org group:
mutation CreateCustomEmoji {
createCustomEmoji(input: {groupPath: "gitlab-org", name: "iteration", url: "https://about.gitlab.com/images/all-remote/gitlab-value-tanukis_iteration.svg"}) {
clientMutationId
errors
}
}
- Add custom emoji to a markdown comment
- Copy comment, paste to new comment
- See custom emoji, not a 300x300px SVG image
Edited by Simon Knox