You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regex Match finds all the shorthands, then for each of them it retrieves the icon and performs a replace on the entire text with an html tag with the shorthand as title.
The subsequent match of the same shorthand repeats the replace on the shorthand contained in the title, causing a recursion. that produces extra ">s in the output.
The solution here is to take only the unique/distinct matches of the regex.
As I discussed in the linked topic, it may also be the case to drop the zip archive containing the icons and rely on fonts such as Noto Color Emoji and unicode chars.
I'm already working to address both issues.
The text was updated successfully, but these errors were encountered:
🐞 Describe the bug
Problem raised in this forum discussion.
Note that this is not strictly related to tables, but with repeated emojis and how the
Emojize
c# method performs the substitutions.The regex
Match
finds all the shorthands, then for each of them it retrieves the icon and performs a replace on the entire text with an html tag with the shorthand as title.The subsequent match of the same shorthand repeats the replace on the shorthand contained in the title, causing a recursion. that produces extra
">
s in the output.The solution here is to take only the unique/distinct matches of the regex.
As I discussed in the linked topic, it may also be the case to drop the zip archive containing the icons and rely on fonts such as Noto Color Emoji and unicode chars.
I'm already working to address both issues.
The text was updated successfully, but these errors were encountered: