Files
Albert Krewinkel 672a4bdd1d Lua filters: allow filtering of element lists (#6040)
Lists of Inline and Block elements can now be filtered via `Inlines` and
`Blocks` functions, respectively. This is helpful if a filter conversion
depends on the order of elements rather than a single element.

For example, the following filter can be used to remove all spaces
before a citation:

    function isSpaceBeforeCite (spc, cite)
      return spc and spc.t == 'Space'
       and cite and cite.t == 'Cite'
    end

    function Inlines (inlines)
      for i = #inlines-1,1,-1 do
        if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
          inlines:remove(i)
        end
      end
      return inlines
    end

Closes: #6038
2020-01-15 14:26:00 -08:00
..
2019-11-16 09:48:05 -08:00
2019-12-30 22:18:55 -08:00
2019-12-17 21:07:46 -08:00
2019-12-17 21:07:46 -08:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2020-01-03 08:38:58 +01:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2019-08-25 14:24:31 -07:00
2019-12-17 21:07:46 -08:00
2018-07-02 19:07:28 +03:00
2018-07-02 19:07:28 +03:00
2018-07-02 19:07:28 +03:00
2019-08-25 14:24:31 -07:00
2019-12-30 22:18:55 -08:00
2019-10-30 21:26:21 -07:00
2019-09-22 11:33:09 -07:00
2019-08-25 14:24:31 -07:00
2019-04-02 17:27:02 -06:00