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

markdown_github behaves differently with UTF-8 than markdown for PDF output #3528

Closed
RickStrahl opened this issue Mar 23, 2017 · 1 comment
Closed

Comments

@RickStrahl
Copy link

When doing a markdown conversion to PDF I see different behavior in terms of UTF 8 conversion between -f github and -f markdown_github. It looks like markdown_github is choking on Emojii expressions that generate extended ASCII characters.

The error I get:

inputenc Error: Unicode char 😄 (U+1F604)
(inputenc)                not set up for use with LaTeX.

image

The error is caused by this markdown in the document:

your favorite browser preview pages. :smile:

So this works:

pandoc -f markdown -s tmp802E.md -o test.pdf
pandoc -f markdown_github -s tmp802E.md -o test.html

this doesn't:

pandoc -f markdown_github -s tmp802E.md -o test.pdf
@mb21
Copy link
Collaborator

mb21 commented Mar 24, 2017

markdown_github includes the emoji extension. which translates e.g. :smile: to the corresponding unicode char. That unicode char in turns is probably not supported by pdflatex. try --latex-engine=xelatex, see #2523

@jgm jgm closed this as completed Mar 24, 2017
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

3 participants