Manual definitely covers both 1 and 2: it says
In order of preference, pandoc will look for Lua filters in
• a specified full or relative path,
• $DATADIR/filters where $DATADIR is the user data directory (see --data-dir, above).
I wouldn’t expect 3 to work. If it does, that’s quite unexpected. Can anyone else reproduce this?
On Jan 20, 2023, at 9:14 AM, ChrisD <cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org> wrote:
Sorry, this is my error.
Filters work when placed in
1) The current working directory
2) $DATADIR/filters
3) <Location of pandoc.exe>/lua
So the manual is correct, though it only specifies (2), not (1) or (3).
Sorry for the noise.
On 1/20/2023 9:47 AM, ChrisD wrote:
What is the correct location for lua filters?
The pandoc manual says it will search for lua filters in $DATADIR/filters. However that doesn't work for me on Windows. What does work is:
1) The current working directory
2) $DATADIR/lua
3) <Location of pandoc.exe>/lua
The location of pandoc.exe for me is user/<username>/AppData/Local/Pandoc. This is on my path.
Is this an error in the manual, or do I have something configured wrong? It seems to me I must have read somewhere to use the lua sub-directory, but I can't find it anywhere online now.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1f6a4484-4173-21b9-efcc-d7cd3867d4f7%40intielectronics.com.