pandoc/test
Albert Krewinkel d0261d7387 Lua filters: allow passing of HTML-like tables instead of Attr ()
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: 
2019-09-15 12:11:58 -07:00
..
command Add --shift-heading-level-by option. 2019-09-10 23:16:13 -07:00
docx Change order of ilvl and numId in document.xml () 2019-07-19 09:32:43 -07:00
epub add tests for EPUB2 and EPUB3 cover reader 2019-06-22 22:07:26 +02:00
fb2 FB2 writer: do not wrap note references into <sup> and brackets 2019-05-15 13:31:07 +03:00
ipynb Include execution output in ipynb test. 2019-03-09 16:53:53 -08:00
lua Lua filters: allow passing of HTML-like tables instead of Attr () 2019-09-15 12:11:58 -07:00
media
odt Add a test for MathML formulas in ODT documents 2019-06-20 21:55:31 +02:00
pptx PowerPoint writer: Start numbering at appopriate numbers. 2019-08-27 01:24:41 -04:00
Tests Revert "FB2 reader test: better diagnostics on failure." 2019-09-15 10:27:19 -07:00
bodybg.gif
creole-reader.native
creole-reader.txt
docbook-reader.docbook
docbook-reader.native
docbook-xref.docbook
docbook-xref.native
dokuwiki_external_images.dokuwiki Dokuwiki writer: remove automatic ':' prefix before internal image links () 2019-01-01 14:07:26 -08:00
dokuwiki_external_images.native
dokuwiki_inline_formatting.dokuwiki
dokuwiki_inline_formatting.native
dokuwiki_multiblock_table.dokuwiki
dokuwiki_multiblock_table.native
grofftest.sh
haddock-reader.haddock
haddock-reader.native
html-reader.html
html-reader.native consolidate simple-table detection () 2019-05-27 13:53:19 -04:00
insert
jats-reader.native
jats-reader.xml
lalune.jpg
latex-reader.latex LaTeX reader test: Allow compilation of file () 2019-03-13 18:21:00 -06:00
latex-reader.native
lhs-test-markdown.native Removed superfluous sourceCode class on code blocks. 2019-01-08 11:36:33 -08:00
lhs-test.fragment.html+lhs
lhs-test.html Add div.hanging-indent CSS to HTML templates. 2019-09-05 12:42:23 -07:00
lhs-test.html+lhs Add div.hanging-indent CSS to HTML templates. 2019-09-05 12:42:23 -07:00
lhs-test.latex Update test for skylighting 0.8.1.1. 2019-06-13 19:33:52 -07:00
lhs-test.latex+lhs LaTeX template: Ensure correct heading/table order () 2019-04-02 18:18:36 -06:00
lhs-test.markdown Removed superfluous sourceCode class on code blocks. 2019-01-08 11:36:33 -08:00
lhs-test.markdown+lhs
lhs-test.native Removed superfluous sourceCode class on code blocks. 2019-01-08 11:36:33 -08:00
lhs-test.rst
lhs-test.rst+lhs
man-reader.man
man-reader.native
markdown-citations.native
markdown-citations.txt
markdown-reader-more.native
markdown-reader-more.txt
mediawiki-reader.native MediaWiki reader: use _ instead of - in auto-identifiers. 2019-01-25 17:10:49 -08:00
mediawiki-reader.wiki
movie.jpg
opml-reader.native
opml-reader.opml
org-select-tags.native Org reader: add support for #+SELECT_TAGS. 2019-01-30 18:27:38 +01:00
org-select-tags.org Org reader: add support for #+SELECT_TAGS. 2019-01-30 18:27:38 +01:00
pipe-tables.native
pipe-tables.txt
rst-reader.native Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
rst-reader.rst Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
s5-basic.html Add div.hanging-indent CSS to HTML templates. 2019-09-05 12:42:23 -07:00
s5-fancy.html Add div.hanging-indent CSS to HTML templates. 2019-09-05 12:42:23 -07:00
s5-fragment.html
s5-inserts.html Add div.hanging-indent CSS to HTML templates. 2019-09-05 12:42:23 -07:00
s5.native
tables-rstsubset.native
tables.asciidoc Asciidoc writer: shorter delimiters for tables, blockquotes. 2019-01-07 22:10:34 -08:00
tables.asciidoctor Adds Asciidoctor sprcific writer and tests 2019-02-09 08:21:53 -08:00
tables.context
tables.custom Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.docbook4
tables.docbook5
tables.dokuwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.fb2 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.haddock
tables.html4
tables.html5
tables.icml
tables.jats
tables.jira Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.latex
tables.man
tables.markdown
tables.mediawiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.ms
tables.muse
tables.native
tables.opendocument Roll back automatic figure/table numbering in ODT/OpenDocument. 2019-06-08 14:17:52 -07:00
tables.org
tables.plain
tables.rst
tables.rtf Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.tei
tables.texinfo
tables.textile Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.txt Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.xwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
tables.zimwiki Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
test-pandoc.hs Improve output of Lua tests () 2019-05-20 12:52:28 -04:00
testsuite.native Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
testsuite.txt
textile-reader.native
textile-reader.textile
tikiwiki-reader.native
tikiwiki-reader.tikiwiki
twiki-reader.native
twiki-reader.twiki
txt2tags.native
txt2tags.t2t
vimwiki-reader.native Vimwiki reader: improve handling of internal links. 2019-04-05 10:04:28 -07:00
vimwiki-reader.wiki
writer.asciidoc asciidoc writer: don't include + in code blocks for regular asciidoc. 2019-09-04 14:57:22 -07:00
writer.asciidoctor Asciidoc writer: use ` +...+ ` form for inline code. 2019-05-05 21:57:30 -07:00
writer.context Customizable type of PDF/A for the ConTeXt writer (issue ) () 2019-07-15 11:55:04 -07:00
writer.custom Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.docbook4 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.docbook5 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.dokuwiki Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.fb2 FB2 writer: do not wrap note references into <sup> and brackets 2019-05-15 13:31:07 +03:00
writer.haddock Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.html4 Replace Element and makeHierarchical with makeSections. 2019-09-08 22:20:19 -07:00
writer.html5 Replace Element and makeHierarchical with makeSections. 2019-09-08 22:20:19 -07:00
writer.icml Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.jats Updating JATS template to v1.1dtd () 2019-07-06 23:31:02 +02:00
writer.jira JIRA writer: Remove escapeStringForJira for code blocks 2019-08-11 21:57:12 +02:00
writer.latex LaTeX template: Ensure correct heading/table order () 2019-04-02 18:18:36 -06:00
writer.man Man writer: Improved definition list term output. 2019-07-13 16:41:43 -07:00
writer.markdown Markdown writer: prefer using raw_attribute when enabled. 2019-07-18 22:31:03 -07:00
writer.mediawiki Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.ms Man/Ms writers: don't escape - as \-. 2018-12-13 11:24:51 -08:00
writer.muse Use doctemplates 0.3, change type of writerTemplate. 2019-07-28 19:25:45 -07:00
writer.native Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.opendocument OpenDocument writer: Avoid duplicate attributes. 2019-06-12 21:51:09 -07:00
writer.opml Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.org Org writer: always indent src blocks content by 2 spaces 2019-05-12 14:49:52 +02:00
writer.plain Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.rst Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.rtf Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.tei
writer.texinfo Shared.compactify: Avoid mixed lists. 2019-02-25 17:33:54 -08:00
writer.textile Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
writer.xwiki Add XWiki Support () 2019-04-02 17:27:02 -06:00
writer.zimwiki Zimwiki writer: remove automatic colon prefix before internal images () 2019-01-01 14:08:38 -08:00
writers-lang-and-dir.context Customizable type of PDF/A for the ConTeXt writer (issue ) () 2019-07-15 11:55:04 -07:00
writers-lang-and-dir.latex LaTeX template: Add pdflang to hypersetup if lang is set. 2019-04-11 16:58:36 -07:00
writers-lang-and-dir.native