Skip to content

Emoji support in markdown_github #2523

Closed
borekb opened this Issue · 8 comments

3 participants

@borekb

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

@jgm jgm added a commit that closed this issue
@jgm Added `emoji` extension to Markdown.
This is enabled by default in `markdown_github`.
Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options` (API change).

Closes #2523.
0a6aaf5
@jgm jgm closed this in 0a6aaf5
@borekb

Thank you! :clap:

@borekb borekb referenced this issue in mike-ward/Markdown-Edit
Closed

Emoji preview if GitHub rendering is selected #66

@miloskroulik

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
Owner
@miloskroulik

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
Owner
jgm commented

To simplify things: the input

:one:

suffices to reproduce the issue.

@jgm
Owner
jgm commented

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
@jgm jgm added a commit that closed this issue
@jgm Fixed Emoji character definitions.
There were many bugs in the definitions.

Closes #2523.
09958d7
@jgm jgm closed this in 09958d7
@jgm
Owner
jgm commented

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

Thanks a lot, I will try it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.