From 1fa6e53425cd81bf4ec74e3362b8484491472194 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 5 Nov 2021 22:37:49 +0100 Subject: doc/lua-filters.md: add section on global modules, including lpeg --- doc/lua-filters.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') diff --git a/doc/lua-filters.md b/doc/lua-filters.md index e7cdd256d..e9a121f50 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -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 -- cgit v1.2.3