Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emojis not escaped in inline code blocks #183

Open
nicolasreich opened this issue Feb 19, 2018 · 5 comments
Open

Emojis not escaped in inline code blocks #183

nicolasreich opened this issue Feb 19, 2018 · 5 comments
Labels

Comments

@nicolasreich
Copy link

:helicopter: should not be translated to 🚁.

@travs
Copy link
Owner

travs commented May 26, 2018

@nicolasreich you can disable emojis in this package's settings as a workaround
@BlueHatbRit what do you think of this one? Should they be escaped or no?

@travs travs added the waiting label May 26, 2018
@elliotblackburn
Copy link
Collaborator

The emoji module mdpdf is using is pretty primitive and was actually only just open sourced a little while ago with very little distinction. I'm not sure this is considered a "bug" in mdpdf but more a question of whether the feature should be changed.

In regards to markdown-pdf, what does the markdown preview show? I'm not an active atom user, so I'm not sure if any of their preview displays emojis at all actually. Comments on this would be great!

@travs
Copy link
Owner

travs commented May 28, 2018

@BlueHatbRit Ahh ok, understood. In atom it displays as :helicopter: without the emoji inside the code section

@elliotblackburn
Copy link
Collaborator

I've just had a look at the emoji plugin being used (https://github.com/Bloggify/showdown-emoji), it just goes through all markdown converting anything identified as an emoji and converts it, it has no restrictions around code blocks etc.

We might be able made a contribution to add this feature to it, I'm not very experienced with Showdowns extension API though so I don't know how much info the emoji extension is getting. I'll take a look and see if I can scope out an issue to raise and hopefully someone can hop on it.

At the moment this is not considered a bug in mdpdf or showdown-emoji, but could be a feature suggestion.

The author of the extension has been really great at the past with a few bugs so I'm sure they'd be open to talking about a configuration addition for this.

@travs
Copy link
Owner

travs commented May 29, 2018

@BlueHatbRit Awesome, and sounds good. Thanks for having a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants