aboutsummaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-11-06 16:45:03 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-11-06 16:47:13 -0700
commit213913f02554b5cec8ea946538d8ba445d4d3f4e (patch)
tree290ad10e1fffb9620434c0cf5c74ac6b3ad7b436 /MANUAL.txt
parent822f8949841f851a56bbd964433aa60205609d20 (diff)
downloadpandoc-213913f02554b5cec8ea946538d8ba445d4d3f4e.tar.gz
Pass ReaderOptions to custom readers as second parameter.
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 7e9f9f85a..dc973f958 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -6596,9 +6596,9 @@ is available by default. To see a sample custom reader:
pandoc --print-default-data-file reader.lua
-Reader options are available via the global variable
-`PANDOC_READER_OPTIONS`, as expalined in the [Lua filters
-documentation].
+If you want your custom reader to have access to reader options
+(e.g. the tab stop setting), you give your Reader function a
+second `options` parameter.
A custom writer is a Lua script that defines a function
that specifies how to render each element in a Pandoc AST.