From 9be2c7624cb0cf3ef63516e5df959672958058bc Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 29 Dec 2017 09:40:22 +0100 Subject: data/pandoc.lua: drop function pandoc.global_filter The function `global_filter` was used internally to get the implicitly defined global filter. It was of little value to end-users, but caused unnecessary code duplication in pandoc. The function has hence been dropped. Internally, the global filter is now received by interpreting the global table as lua filter. This is a Lua API change. --- doc/lua-filters.md | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'doc') diff --git a/doc/lua-filters.md b/doc/lua-filters.md index afa9b939f..10dca0dce 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -1325,25 +1325,6 @@ Lua functions for pandoc scripts. ## Helper Functions -[`global_filter ()`]{#global_filter} - -: Use functions defined in the global namespace to create a - pandoc filter. - - Returns: A list of filter functions - - Usage: - - -- within a file defining a pandoc filter: - text = require 'text' - function Str(elem) - return pandoc.Str(text.upper(elem.text)) - end - - return {pandoc.global_filter()} - -- the above is equivalent to - -- return {{Str = Str}} - [`pipe (command, args, input)`]{#pipe} : Runs command with arguments, passing it some input, and -- cgit v1.2.3