summaryrefslogtreecommitdiff
path: root/data/pandoc.lua
Commit message (Collapse)AuthorAge
* Lua module: provide accessors to element propertiesAlbert Krewinkel2017-04-15
|
* Lua filter: use Attributes constructor for AttrsAlbert Krewinkel2017-04-15
| | | | | | Element attributes are pushed to the stack via the `Attributes` function. `Attributes` creates an Attr like triple, but the triple also allows table-like access to key-value pairs.
* Lua module: fix doc generation, reorder codeAlbert Krewinkel2017-04-15
| | | | Ensure that documentation generated with `ldoc` is readable and correct.
* Lua module: provide builder functions for math and quotedAlbert Krewinkel2017-04-15
| | | | | | Provide functions `pandoc.SingleQuoted`, `pandoc.DoubleQuoted`, `pandoc.DisplayMath`, and `pandoc.InlineMath` to allow simple building of Math and Quoted elements.
* Lua filter: use lua strings for nullary constructorsAlbert Krewinkel2017-04-14
| | | | | | | Lua string are used to represent nullary data constructors. The previous table-based representation was based on the JSON serialization, but can be simplified. This also matches the way those arguments are passed to custom writers.
* Push blocks via lua constructors and constantsAlbert Krewinkel2017-04-14
| | | | | All element creation tasks are handled by lua functions defined in the pandoc module.
* Use lua constructors to push meta valuesAlbert Krewinkel2017-04-13
|
* Improve lua module documentationAlbert Krewinkel2017-04-13
|
* Lua module: provide multi-param Inline constructorsAlbert Krewinkel2017-04-12
| | | | | | Instead of taking only a single argument containing the pre-packed element contents, `Inline` constructors now take the same arguments as the respective filter and `Custom` writer function
* Lua filter: use custom StackValue Inline instanceAlbert Krewinkel2017-04-11
| | | | Inline elements are no longer pushed and pulled via aeson's Value.
* Lua filters (#3514)Albert Krewinkel2017-03-20
* Add `--lua-filter` option. This works like `--filter` but takes pathnames of special lua filters and uses the lua interpreter baked into pandoc, so that no external interpreter is needed. Note that lua filters are all applied after regular filters, regardless of their position on the command line. * Add Text.Pandoc.Lua, exporting `runLuaFilter`. Add `pandoc.lua` to data files. * Add private module Text.Pandoc.Lua.PandocModule to supply the default lua module. * Add Tests.Lua to tests. * Add data/pandoc.lua, the lua module pandoc imports when processing its lua filters. * Document in MANUAL.txt.