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
Hi there! Is this issue still open? I might be interested in taking a deeper look at this; does your team have any resources or tips you'd recommend to get started? Thanks!
@samcoe Hi, I'm working on this issue with @divyaramanathan, and we wanted to confirm the correct behavior for this defect. We've found this repo that uses emojis as well as plaintext following the :word: format. We think the correct behavior would be to not render emojis in code blocks. This would reflect behavior on the Github website. Are we on the right track with this idea? thanks!
@samcoe me and @divyaramanathan are currently toying with goldmark-emoji. We were able add the dependency and modify the rendering of the :de: in the strongswan/strongswan README
from the original
to
We think this is still incorrect because it seems the goldmark-emoji parser is still trying to render this :de: as an emoji. We're unsure of where to go from here (maybe dig into some of the glamour internals?), and would appreciate any advice you may have!
We can make a draft PR with our current changes if you'd like!
Just to add on to what @zaboyle said, 🇩 is the Unicode hex character code for 'd' and then 🇪 is the Unicode hex character code for 'e'.
I believe we are very close-- do you think this could relate to the type of terminal we're running on?
@zaboyle@divyaramanathan It seems unlikely that it is related to the terminal you are running. I think it would be easiest to open a draft PR so that I can better help with resolving this issue.
@divyaramanathan@zaboyle Thanks for taking a stab at this! It's a hard problem, and I don't think the libraries that we're using now are equipped well for extensibility.
Since our current :emoji: substitution is broken (i.e. it replaces emoji where it shouldn't, such as in code blocks), would we consider reverting it until a better solution lands in Glamour?
I don't have a strong opinion here. I am comfortable leaving it as is, with some incorrect replacements, until the upstream PR gets merged. If more issues get opened regarding this bug or more people chime in saying they are encountering it then we could reevaluate and revert the change then.
A quick update here. The upstream PR charmbracelet/glamour#92 was merged in 🎉! Now we just need to wait for the next release of glamour.
@garvit-joshi That is interesting. This issue is specifically for emoji rendering in our markdown renderer, where as it appears you are having rendering issues in our survey code. I think it would be best to keep these separate, so if you wouldn't mind opening a new issue that would be much appreciated.
Activity
divyaramanathan commentedon Nov 6, 2020
Hi there! Is this issue still open? I might be interested in taking a deeper look at this; does your team have any resources or tips you'd recommend to get started? Thanks!
samcoe commentedon Nov 6, 2020
@divyaramanathan This issue is still open and available to be worked on. We are using https://github.com/charmbracelet/glamour to parse our markdown right now, which in turn uses https://github.com/yuin/goldmark. The
goldmarklibrary already has an emoji extension (https://github.com/yuin/goldmark-emoji) that we should try to use. I think the difficult part is just figuring out how to get that extension working withglamour.zaboyle commentedon Nov 7, 2020
@samcoe Hi, I'm working on this issue with @divyaramanathan, and we wanted to confirm the correct behavior for this defect. We've found this repo that uses emojis as well as plaintext following the
:word:format. We think the correct behavior would be to not render emojis in code blocks. This would reflect behavior on the Github website. Are we on the right track with this idea? thanks!samcoe commentedon Nov 9, 2020
@zaboyle That is correct, we want to keep the same behavior that we see on GitHub which would be not rendering emoji in code blocks. Also, it seems that the
goldmark-emojiextension I linked above already has the GitHub emoji definitions (https://github.com/yuin/goldmark-emoji/blob/master/definition/github.go) so I would expect that to work as is without having to introduce another library for those definitions.zaboyle commentedon Nov 12, 2020
@samcoe me and @divyaramanathan are currently toying with

goldmark-emoji. We were able add the dependency and modify the rendering of the:de:in thestrongswan/strongswanREADMEfrom the original
to

We think this is still incorrect because it seems the
goldmark-emojiparser is still trying to render this:de:as an emoji. We're unsure of where to go from here (maybe dig into some of theglamourinternals?), and would appreciate any advice you may have!We can make a draft PR with our current changes if you'd like!
Thanks!
divyaramanathan commentedon Nov 12, 2020
Just to add on to what @zaboyle said,
🇩is the Unicode hex character code for 'd' and then🇪is the Unicode hex character code for 'e'.I believe we are very close-- do you think this could relate to the type of terminal we're running on?
samcoe commentedon Nov 13, 2020
@zaboyle @divyaramanathan It seems unlikely that it is related to the terminal you are running. I think it would be easiest to open a draft PR so that I can better help with resolving this issue.
mislav commentedon Nov 24, 2020
@divyaramanathan @zaboyle Thanks for taking a stab at this! It's a hard problem, and I don't think the libraries that we're using now are equipped well for extensibility.
@samcoe Thank you for submitting the feature upstream! charmbracelet/glamour#92
Since our current
:emoji:substitution is broken (i.e. it replaces emoji where it shouldn't, such as in code blocks), would we consider reverting it until a better solution lands in Glamour?samcoe commentedon Nov 25, 2020
I don't have a strong opinion here. I am comfortable leaving it as is, with some incorrect replacements, until the upstream PR gets merged. If more issues get opened regarding this bug or more people chime in saying they are encountering it then we could reevaluate and revert the change then.
garvit-joshi commentedon Dec 8, 2020
I am not sure if this should be mentioned here, but some emojis are not working in Command Prompt.

The Tick emoji(✓) to be precise.
samcoe commentedon Dec 8, 2020
A quick update here. The upstream PR charmbracelet/glamour#92 was merged in 🎉! Now we just need to wait for the next release of
glamour.@garvit-joshi That is interesting. This issue is specifically for emoji rendering in our markdown renderer, where as it appears you are having rendering issues in our survey code. I think it would be best to keep these separate, so if you wouldn't mind opening a new issue that would be much appreciated.
cristiand391 commentedon Apr 11, 2021
@samcoe @mislav FYI there's a new
glamourrelease:https://github.com/charmbracelet/glamour/releases
luckman212 commentedon Apr 15, 2021
awesome @samcoe - thank you!