pandoc/test/Tests
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
..
Lua Add tests for pandoc.List module 2020-01-11 17:42:32 +01:00
Readers HTML reader tests: modify round-trip tests... 2019-12-21 12:15:35 -08:00
Writers LaTeX writer: properly handle unnumbered headings level 4+. 2020-01-01 22:32:27 -07:00
Command.hs Switch to new pandoc-types and use Text instead of String [API change]. 2019-11-12 16:03:45 -08:00
Helpers.hs Switch to new pandoc-types and use Text instead of String [API change]. 2019-11-12 16:03:45 -08:00
Lua.hs Lua filters: allow filtering of element lists (#6040) 2020-01-15 14:26:00 -08:00
Old.hs Add jira reader (#5913) 2019-12-17 21:07:46 -08:00
Shared.hs Switch to new pandoc-types and use Text instead of String [API change]. 2019-11-12 16:03:45 -08:00