Skip to content

Commit

Permalink
Only use the emoji package in TeX Live 2020 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed May 11, 2022
1 parent a46ffd2 commit a8e5838
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,14 @@
\newunicodechar{☒}{\markdownRendererTickedBox}
\newunicodechar{⌛}{\markdownRendererHalfTickedBox}
\newunicodechar{☐}{\markdownRendererUntickedBox}
\IfFileExists{emoji.sty}{
\makeatletter
\@ifpackagelater{emoji}{2020/03/16}{
\usepackage{emoji}
\setemojifont
\newunicodechar{😉}{\emoji{wink}}
\newunicodechar{😉}{\emoji{winking-face}}
}{
\newunicodechar{😉}{;-)}
}
\makeatother

% Set up the catcodes.
\catcode`\_=12 % We won't be typesetting much math and Lua contains lots of `_`.
Expand Down

0 comments on commit a8e5838

Please sign in to comment.