Skip to content
Discussion options

You must be logged in to vote

Note that it is definitely possible to conditionally inject things into metadata depending on the format, but you'd have to use a Lua filter to do that.

It would even be possible to write a general filter that allowed you to do something like this:

if:
  format: epub
  mainfont: "Calibri"

Please refer to the pandoc manual and the manual on Lua filters for reliable documentation.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@jgm
Comment options

jgm Jul 16, 2026
Maintainer

Answer selected by arnome-uBe
@arnome-uBe
Comment options

@jgm
Comment options

jgm Jul 16, 2026
Maintainer

@arnome-uBe
Comment options

@arnome-uBe
Comment options

Comment options

You must be logged in to vote
1 reply
@arnome-uBe
Comment options

Comment options

You must be logged in to vote
1 reply
@arnome-uBe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants