Skip to content

Commit

Permalink
doc/lua-filters.md: Add static analysis paragraph to debugging section (
Browse files Browse the repository at this point in the history
  • Loading branch information
rnwst authored Jan 29, 2025
1 parent 0be07a5 commit f17de99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/lua-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ colon syntax (`mystring:uc_upper()`).

# Debugging Lua filters

Many errors can be avoided by performing static analysis.
[`luacheck`](https://github.com/rnwst/pandoc.git) may be used for this
purpose. A Luacheck configuration file for pandoc filters is available
at <https://github.com/rnwst/pandoc-luacheckrc>.

William Lupton has written a Lua module with some handy
functions for debugging Lua filters, including functions
that can pretty-print the Pandoc AST elements manipulated
Expand Down

0 comments on commit f17de99

Please sign in to comment.