pandoc/data
Albert Krewinkel 849900c516 data/pandoc.lua: enable table-like behavior of attributes (#4080)
Attribute lists are represented as associative lists in Lua. Pure
associative lists are awkward to work with. A metatable is attached to
attribute lists, allowing to access and use the associative list as if
the attributes were stored in as normal key-value pair in table.

Note that this changes the way `pairs` works on attribute lists. Instead
of producing integer keys and two-element tables, the resulting iterator
function now returns the key and value of those pairs.  Use `ipairs` to
get the old behavior.

Warning: the new iteration mechanism only works if pandoc has been
compiled with Lua 5.2 or later (current default: 5.3).

The `pandoc.Attr` function is altered to allow passing attributes as
key-values in a normal table. This is more convenient than having to
construct the associative list which is used internally.

Closes #4071
2017-11-20 09:37:40 -08:00
..
docx Removed redundant element from data/docx/word/numbering.xml. 2017-06-27 12:39:13 +02:00
dzslides Updated dzslides template. 2015-07-13 22:46:49 -07:00
odt [odt] Infer table's caption from the paragraph (#3224) 2016-11-26 21:45:56 +01:00
templates LaTeX template: include natbib/biblatex after polyglossia. 2017-11-14 20:50:13 -08:00
translations Added Listing to Term. 2017-08-12 13:19:50 -07:00
abbreviations Removed etc. from abbreviations file. 2017-11-09 23:23:51 -05:00
bash_completion.tpl Support for PDF generation via weasyprint and prince (#3909) 2017-09-11 20:18:42 -07:00
default.theme Added data/default.theme to repository. 2017-04-01 22:59:10 +02:00
epub.css HTML Writer: consistently use dashed class-names 2017-10-31 10:40:16 +01:00
jats.csl Fixed URIs in jats.csl. 2017-11-11 16:23:41 -08:00
LaTeXMathML.js Added --mathml option; removed Text.Pandoc.LaTeXMathML. 2010-03-18 06:45:56 +00:00
make-reference-files.hs make-reference-files: use proper path separators for Windows. 2015-05-28 09:59:08 -07:00
pandoc.lua data/pandoc.lua: enable table-like behavior of attributes (#4080) 2017-11-20 09:37:40 -08:00
sample.lua Fix sample.lua barfing on Raw data (#3358) 2017-01-18 12:47:15 +01:00
vimwiki.css Added Vimwiki reader (#3705). 2017-06-19 22:15:12 +02:00