@@ -1744,6 +1744,36 @@ table into a List.
17441744A pandoc log message. Objects have no fields, but can be
17451745converted to a string via `tostring`.
17461746
1747+## SimpleTable {#type-simpletable}
1748+
1749+A simple table is a table structure which resembles the old (pre
1750+pandoc 2.10) Table type. Bi-directional conversion from and to
1751+[Tables](#type-table) is possible with the
1752+[`pandoc.utils.to_simple_table`](#pandoc.utils.to_simple_table)
1753+and
1754+[`pandoc.utils.from_simple_table`](#pandoc.utils.from_simple_table)
1755+function, respectively. Instances of this type can also be created
1756+directly with the [`pandoc.SimpleTable`](#pandoc.simpletable)
1757+constructor.
1758+
1759+Fields:
1760+
1761+`caption`:
1762+: [List] of [Inlines]
1763+
1764+`aligns`:
1765+: column alignments ([List] of [Alignments](#type-alignment))
1766+
1767+`widths`:
1768+: column widths; a ([List] of numbers)
1769+
1770+`headers`:
1771+: table header row ([List] of lists of [Blocks])
1772+
1773+`rows`:
1774+: table rows ([List] of rows, where a row is a list of lists of
1775+ [Blocks])
1776+
17471777## Version {#type-version}
17481778
17491779A version object. This represents a software version like
@@ -1816,6 +1846,8 @@ Usage:
18161846[Pandoc]: #type-pandoc
18171847[Para]: #type-para
18181848[Rows]: #type-row
1849+[SimpleTable]: #type-simpletable
1850+[Table]: #type-table
18191851[TableBody]: #type-tablebody
18201852[TableFoot]: #type-tablefoot
18211853[TableHead]: #type-tablehead
@@ -2491,6 +2523,51 @@ format, and functions to filter and modify a subtree.
24912523
24922524 Returns: [ListAttributes](#type-listattributes) object
24932525
2526+## Legacy types
2527+
2528+[`SimpleTable (caption, aligns, widths, headers, rows)`]{#pandoc.simpletable}
2529+
2530+: Creates a simple table resembling the old (pre pandoc 2.10)
2531+ table type.
2532+
2533+ Parameters:
2534+
2535+ `caption`:
2536+ : [List] of [Inlines]
2537+
2538+ `aligns`:
2539+ : column alignments ([List] of [Alignments](#type-alignment))
2540+
2541+ `widths`:
2542+ : column widths; a ([List] of numbers)
2543+
2544+ `headers`:
2545+ : table header row ([List] of lists of [Blocks])
2546+
2547+ `rows`:
2548+ : table rows ([List] of rows, where a row is a list of lists
2549+ of [Blocks])
2550+
2551+ Returns: [SimpleTable] object
2552+
2553+ Usage:
2554+
2555+ local caption = "Overview"
2556+ local aligns = {pandoc.AlignDefault, pandoc.AlignDefault}
2557+ local widths = {0, 0} -- let pandoc determine col widths
2558+ local headers = {"Language", "Typing"}
2559+ local rows = {
2560+ {{pandoc.Plain "Haskell"}, {pandoc.Plain "static"}},
2561+ {{pandoc.Plain "Lua"}, {pandoc.Plain "Dynamic"}},
2562+ }
2563+ simple_table = pandoc.SimpleTable(
2564+ caption,
2565+ aligns,
2566+ widths,
2567+ headers,
2568+ rows
2569+ )
2570+
24942571## Constants
24952572
24962573[`AuthorInText`]{#pandoc.authorintext}
@@ -2753,6 +2830,26 @@ Returns:
27532830
27542831- Whether the two objects represent the same element (boolean)
27552832
2833+### from\_simple\_table {#pandoc.utils.from_simple_table}
2834+
2835+`from_simple_table (table)`
2836+
2837+Creates a [Table] block element from a [SimpleTable]. This is
2838+useful for dealing with legacy code which was written for pandoc
2839+versions older than 2.10.
2840+
2841+Returns:
2842+
2843+- table block element ([Table])
2844+
2845+Usage:
2846+
2847+ local simple = pandoc.SimpleTable(table)
2848+ -- modify, using pre pandoc 2.10 methods
2849+ simple.caption = pandoc.SmallCaps(simple.caption)
2850+ -- create normal table block again
2851+ table = pandoc.utils.from_simple_table(simple)
2852+
27562853### make\_sections {#pandoc.utils.make_sections}
27572854
27582855`make_sections (number_sections, base_level, blocks)`
@@ -2872,6 +2969,24 @@ Usage:
28722969 local pandoc_birth_year = to_roman_numeral(2006)
28732970 -- pandoc_birth_year == 'MMVI'
28742971
2972+### to\_simple\_table {#pandoc.utils.to_simple_table}
2973+
2974+`to_simple_table (table)`
2975+
2976+Creates a [SimpleTable] out of a [Table] block.
2977+
2978+Returns:
2979+
2980+- a simple table object ([SimpleTable])
2981+
2982+Usage:
2983+
2984+ local simple = pandoc.utils.to_simple_table(table)
2985+ -- modify, using pre pandoc 2.10 methods
2986+ simple.caption = pandoc.SmallCaps(simple.caption)
2987+ -- create normal table block again
2988+ table = pandoc.utils.from_simple_table(simple)
2989+
28752990# Module pandoc.mediabag
28762991
28772992The `pandoc.mediabag` module allows accessing pandoc's media