public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Type of the `filter' argument to traversal functions
@ 2020-08-11 19:09 Anton Shepelev
       [not found] ` <20200811220909.e97f97ce8e8dad5d575d90f6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Anton Shepelev @ 2020-08-11 19:09 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hello, all

I  am  trying to write a Lua filter.  The documenta-
tion to walk_block() and walk_filter()  states  that
the  second  parameter  is  "a  Lua filter (table of
functions) to be applied within the block  element".
When, however, I pass a filter table consisting of a
single row:

   pandoc.walk_block( elem, {{ Span = OnSpan }} )

it is ignored. By experiment I found that the  func-
tions  expect not a table of functions, but a single
row of it:

   pandoc.walk_block( elem, { Span = OnSpan } )

Now it works. Is the documentation incorrect or do I
misinterpret  it?  For aught I know, {Span = OnSpan}
is not a "table of functions".

-- 
Please, do not forward replies to the list to my e-mail.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-08-12 11:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 19:09 Type of the `filter' argument to traversal functions Anton Shepelev
     [not found] ` <20200811220909.e97f97ce8e8dad5d575d90f6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-08-11 19:21   ` John MacFarlane
2020-08-11 21:46     ` Anton Shepelev
     [not found]       ` <20200812004617.ec382d94b849e234bbaa6762-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-08-11 22:15         ` EBkysko
2020-08-11 22:47           ` Anton Shepelev
     [not found]             ` <20200812014715.1c4ddc723344d9fb5f9c92e9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-08-11 23:02               ` EBkysko
     [not found]                 ` <996602a6-8c95-406c-b569-f381f517af31o-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-11 23:36                   ` EBkysko
2020-08-12  0:24         ` John MacFarlane
     [not found]           ` <m2o8nghfs7.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-08-12  8:19             ` BPJ
     [not found]               ` <CADAJKhCR8ZQwWhEW2x_b9sUAyMikaFEySXnQCFVtFWq6VOdRKQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-12  8:22                 ` BPJ
2020-08-12  9:32               ` Anton Shepelev
     [not found]                 ` <20200812123257.14be2d659f808e89ecb7e7f9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2020-08-12 11:40                   ` EBkysko
2020-08-12  9:17           ` Anton Shepelev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).