From ec068f23184188ab8aec2ab7c78901843aa5fd61 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 29 Dec 2017 09:00:00 +0100 Subject: data/pandoc.lua: fix documentation for global_filter --- doc/lua-filters.md | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'doc') diff --git a/doc/lua-filters.md b/doc/lua-filters.md index c99625e67..6e34acbd4 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -1172,18 +1172,6 @@ Lua functions for pandoc scripts. Returns: strong element -## Helpers - -[`apairs (value)`]{#apairs} - -: Return an iterator which returns key-value pairs of an - associative list. - - Parameters: - - `value`: - : },\...} alist associative list - [`Attr ([identifier[, classes[, attributes]]])`]{#Attr} : Create a new set of attributes (Attr). @@ -1347,12 +1335,13 @@ Lua functions for pandoc scripts. Usage: -- within a file defining a pandoc filter: - function Str(text) - return pandoc.Str(utf8.upper(text)) + text = require 'text' + function Str(elem) + return pandoc.Str(text.upper(elem.text)) end return {pandoc.global_filter()} - -- the above is equivallent to + -- the above is equivalent to -- return {{Str = Str}} # Module pandoc.utils -- cgit v1.2.3