Open hadrien-toma opened 3 days ago
You'll want to add additional fallback fonts that support emojis. For example, see this config from the test suite:
In particular, something like the following with your preferred fonts substituted in should do the trick:
[profile.pdf]
pdf-engine = "lualatex"
[profile.pdf.variables]
mainfont = "Noto Serif"
sansfont = "Noto Sans"
monofont = "Noto Sans Mono"
mainfontfallback = [
"NotoColorEmoji:mode=harf",
]
monofontfallback = [
"NotoColorEmoji:mode=harf",
]
See the mainfontfallback, sansfontfallback, monofontfallback
section of the Pandoc manual.
Hello, thanks for the great work done here, relying on
pandoc
is a motivation I truly valuate :ok_hand:!I try to render a markdown table containing emoji with the following configuration but doesn't rich too, maybe someone has any keys?
I am on Ubuntu 22.04 and I use MdBook 0.4.42 and Pandoc 3.5. Here is the content of my book.toml related to
mdbook-pandoc
:Using this setup I get the following result and without the
mainfont
line I see nothing instead of the emojis (worth noting the emojis are correctly rendered inepub
and `html\ outputs):