Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-04-15 | Lua filter: revert to non-destructuring filters | Albert Krewinkel | 1 | -4/+4 | |
We want to provide an interface familiar to users of other filtering libraries. | |||||
2017-04-14 | Lua filter: use destructured functions for block filters | Albert Krewinkel | 1 | -2/+1 | |
Filtering functions take element components as arguments instead of the whole block elements. This resembles the way elements are handled in custom writers. | |||||
2017-04-02 | Lua module: add readers submodule | Albert Krewinkel | 1 | -0/+12 | |
Plain text readers are exposed to lua scripts via the `pandoc.reader` submodule, which is further subdivided by format. Converting e.g. a markdown string into a pandoc document is possible from within lua: doc = pandoc.reader.markdown.read_doc("Hello, World!") A `read_block` convenience function is provided for all formats, although it will still parse the whole string but return only the first block as the result. Custom reader options are not supported yet, default options are used for all parsing operations. |