doc/lua-filters.md: add section on global modules, including lpeg

This commit is contained in:
Albert Krewinkel 2021-11-05 22:37:49 +01:00
parent 7a70a46c03
commit 1fa6e53425
No known key found for this signature in database
GPG key ID: 388DC0B21F631124

View file

@ -245,6 +245,16 @@ variables.
variable is of type [CommonState] and
is read-only.
## Global modules
There are two modules which are preloaded and accessible through
global variables. The first is `pandoc`, which is described in the
next section. The other is `lpeg`, a package based on Parsing
Expression Grammars (PEG). See the official [LPeg homepage] for
details.
[LPeg homepage]: http://www.inf.puc-rio.br/~roberto/lpeg/
# Pandoc Module
The `pandoc` Lua module is loaded into the filter's Lua