From 30d802fe38c71dc783a1eb9c212c0fdf02d0b9db Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 10 Jun 2022 08:39:55 -0700 Subject: [PATCH] MANUAL: note that custom readers/writers will... be sought in the readers/writers subdirectory of the user data directory if not found relative to the working directory. Documents #8112. --- MANUAL.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MANUAL.txt b/MANUAL.txt index 30e46d765..44946813d 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -6967,6 +6967,10 @@ Lua script in place of the input or output format. For example: pandoc -t data/sample.lua pandoc -f my_custom_markup_language.lua -t latex -s +If the script is not found relative to the working directory, +it will be sought in the `readers` or `writers` subdirectory +of the user data directory (see `--data-dir`). + A custom reader is a Lua script that defines one function, Reader, which takes a string as input and returns a Pandoc AST. See the [Lua filters documentation] for documentation