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
I have been trying to add a 'emoji' grammar to mistune but unfortunately I have been not so successful and have already spent more time on it than I'd like to admit. I am not that experienced with regex'es so there might be something wrong with mine but I just can't figure out what. The problem is, that mistune will only match the first pattern (like, literally the first in a block) and every emoji pattern after the first match is handled as a normal text. This is the code I've come up with:
Hey,
I have been trying to add a 'emoji' grammar to mistune but unfortunately I have been not so successful and have already spent more time on it than I'd like to admit. I am not that experienced with regex'es so there might be something wrong with mine but I just can't figure out what. The problem is, that mistune will only match the first pattern (like, literally the first in a block) and every emoji pattern after the first match is handled as a normal text. This is the code I've come up with:
and this is the output:
I would really appreciate any input/help.
The text was updated successfully, but these errors were encountered: