diff options
| author | Albert Krewinkel <[email protected]> | 2025-05-14 15:02:34 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-05-14 09:17:24 -0700 |
| commit | 992842d07bcedf2b2782db0de8edd6d23a0230e9 (patch) | |
| tree | 7bf2e58354588f097130dd351d11ebef98042494 /doc | |
| parent | fb24d42ab71568cf5edfc77daba88142d1141a46 (diff) | |
Lua: accept filename-contents pairs as env for `pandoc.read`
Key-value pairs, mapping from filename to contents, can be used to fill
the ersatz file system used in the reader sandbox.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lua-filters.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 6e3aca090..9a29732d9 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -3775,7 +3775,9 @@ Parameters: : If the value is not given or `nil`, then the global environment is used. Passing a list of filenames causes the reader to be run in a sandbox. The given files are read from - the file system and provided to the sandbox in a ersatz file + the file system and provided to the sandbox via an ersatz file + system. The table can also contain mappings from filenames to + contents, which will be used to populate the ersatz file system. Returns: pandoc document ([Pandoc](#type-pandoc)) |
