Replies: 1 comment 6 replies
-
You could try
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a Docker-based application that uses Pandoc Lua filters. My goal is to make the Lua filters available system-wide for all users in the container, not just for a single user.
Context
To my knowledge, Pandoc looks for resources (e.g., filters, templates) in the
$XDG_DATA_HOME/pandoc/
directory. If$XDG_DATA_HOME
is unset, it defaults to~/.local/share/pandoc/
.Placing Lua filters in
~/.local/share/pandoc/filters/
works perfectly for a single user, but I need them to be accessible system-wide.Attempts
I tried placing the filters in:
/usr/local/share/pandoc/filters/
/usr/share/pandoc/filters/
However, Pandoc did not detect them.
In the Pandoc Dockerfiles repository they set globaly
$XDG_DATA_HOME
, but it could potentially break other tools.Using the
--data-dir
option works when explicitly passed to Pandoc:But this approach requires every call of Pandoc to include the
--data-dir
option, which is inconvenient in some scenarios.Question
Is there a recommended way to configure Pandoc to recognize a system-wide directory (e.g.,
/usr/local/share/pandoc/filters/
) for Lua filters and other resources without relying on--data-dir
for every call?Any advice or best practices would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions