pandoc/data
Albert Krewinkel d0261d7387 Lua filters: allow passing of HTML-like tables instead of Attr (#5750)
Attr values can now be given as normal Lua tables; this can be used as a
convenient alternative to define Attr values, instead of constructing
values with `pandoc.Attr`. Identifiers are taken from the *id* field,
classes must be given as space separated words in the *class* field. All
remaining fields are included as misc attributes.

With this change, the following lines now create equal elements:

    pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
    pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))

This also works when using the *attr* setter:

    local span = pandoc.Span 'text'
    span.attr = {id = 'test', class = 'a b', check = 1}

Furthermore, the *attributes* field of AST elements can now be a plain
key-value table even when using the `attributes` accessor:

    local span = pandoc.Span 'test'
    span.attributes = {check = 1}   -- works as expected now

Closes: #5744
2019-09-15 12:11:58 -07:00
..
docx Docx writer: added framework for custom properties. 2018-10-09 10:38:50 -07:00
dzslides
odt [odt] Infer table's caption from the paragraph (#3224) 2016-11-26 21:45:56 +01:00
pptx PowerPoint writer: expand builtin reference doc to model all layouts 2019-04-05 08:50:39 -04:00
templates Add div.hanging-indent CSS to HTML templates. 2019-09-05 12:42:23 -07:00
translations Translations: reorder alphabetically (#5335) 2019-02-27 11:11:50 -07:00
abbreviations Additional abbreviations 2018-11-20 15:42:24 -05:00
bash_completion.tpl Add tectonic as an option for --pdf-engine. (#5346) 2019-03-07 10:16:40 -07:00
epub.css Add CSS for hanging-indent div to epub.css. 2019-09-05 12:44:29 -07:00
init.lua Lua filters: load module pandoc before calling init.lua (#5287) 2019-02-09 13:56:49 -08:00
jats.csl Update data/jats.csl to avoid commas between editor name-part elements. (#5629) 2019-07-05 13:07:51 +02:00
make-reference-files.hs
pandoc.List.lua Update copyright notices to include 2018 2018-01-05 20:39:12 +01:00
pandoc.lua Lua filters: allow passing of HTML-like tables instead of Attr (#5750) 2019-09-15 12:11:58 -07:00
sample.lua sample.lua: Add a missing '>' 2019-01-16 12:34:17 +01:00
vimwiki.css Added Vimwiki reader (#3705). 2017-06-19 22:15:12 +02:00