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

Emoji support in markdown_github #2523

Closed
borekb opened this issue Nov 13, 2015 · 15 comments
Closed

Emoji support in markdown_github #2523

borekb opened this issue Nov 13, 2015 · 15 comments

Comments

@borekb
Copy link

borekb commented Nov 13, 2015

GitHub / GFM supports emoji and it would be nice to have a Pandoc extension for it.

@jgm jgm closed this as completed in 0a6aaf5 Nov 13, 2015
@borekb
Copy link
Author

borekb commented Nov 14, 2015

Thank you! 👏

@miloskroulik
Copy link

This doesn't seem to be working when converting to PDF with pandoc dokumentace.md -f markdown_github -o dokumentace.pdf. Following error appears:

! Package inputenc Error: Keyboard character used is undefined
(inputenc)                in inputencoding `utf8'.

See the inputenc package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.83 ... ně odkazujeme pomocí symolů 1^^Le0f^^T

The same problem also appears with xetex. I'm using Pandoc 1.15.2

@jgm
Copy link
Owner

jgm commented Nov 27, 2015 via email

@miloskroulik
Copy link

I enclosed the minimal document for inspection:
emoji.md.txt

Please let me know, if this is what you're looking for. Also, is there some version of Texlive required? I'm using the packages available in Ubuntu 14.04.

EDIT: I tried to convert :smiley: and it works just fine. So it looks like that only some of the emojis are supported.

@jgm
Copy link
Owner

jgm commented Dec 4, 2015

To simplify things: the input

:one:

suffices to reproduce the issue.

@jgm
Copy link
Owner

jgm commented Dec 4, 2015

Looks like there's an issue with :one: in HTML output, too. I'll reopen this issue so we can look into it.

@jgm jgm reopened this Dec 4, 2015
@jgm jgm closed this as completed in 09958d7 Dec 4, 2015
@jgm
Copy link
Owner

jgm commented Dec 4, 2015

OK, I've fixed a bunch of bugs in the emoji character definitions.
But note also that you should use --latex-engine=xelatex, and that how the characters appear will depend on your font's support for them.
Thanks for raising this issue!

@miloskroulik
Copy link

Thanks a lot, I will try it soon.

@eivindml
Copy link

Hmm. I still have no rendering of emojis when using this. Even with --latex-enginge=xelatex. No errors, but just renders as white space.

@mb21
Copy link
Collaborator

mb21 commented Feb 22, 2017

@eivindml probably your font doesn't have that character...

@jgm
Copy link
Owner

jgm commented Feb 22, 2017 via email

@eivindml
Copy link

@jgm @mb21 Ok. Thanks! Which font can I use, and how to I specify font with pandoc? On MacOS Sierra.

@mb21
Copy link
Collaborator

mb21 commented Mar 24, 2017

@eivindml the following might work:

echo 'hi :smile: :one:' | pandoc -f markdown+emoji --latex-engine=lualatex -o foo.pdf --variable mainfont="DejaVu Sans"

@mb720
Copy link

mb720 commented May 29, 2019

I tried

echo 'hi :smile: :one:' | pandoc -f markdown+emoji --pdf-engine=lualatex -o foo.pdf --variable mainfont="DejaVu Sans"

but got this error:

[WARNING] Missing character: There is no ⃣ (U+20E3) in font DejaVuSans:mode=node;script=

@jgm
Copy link
Owner

jgm commented May 29, 2019

As the message indicates, you need to use a font that actually has this glyph. (See mainfont.)
Please ask questions on pandoc-discuss rather than closed issues.

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

No branches or pull requests

6 participants