diff --git a/markdown.dtx b/markdown.dtx index 2f63ef9ce..76e0ba2ad 100644 --- a/markdown.dtx +++ b/markdown.dtx @@ -29567,8 +29567,13 @@ M.extensions.pipe_tables = function(table_captions, table_attributes) -- luachec % % \end{markdown} % \begin{macrocode} - function self.table(rows, caption) + function self.table(rows, caption, attributes) if not self.is_writing then return "" end + if attributes ~= nil then + table.insert(buf, + "\\markdownRendererTableAttributeContextBegin\n") + table.insert(buf, self.attributes(attributes)) + end local buffer = {"\\markdownRendererTable{", caption or "", "}{", #rows - 1, "}{", #rows[1], "}"} local temp = rows[2] -- put alignments on the first row @@ -29587,6 +29592,10 @@ M.extensions.pipe_tables = function(table_captions, table_attributes) -- luachec end table.insert(buffer, "}") end + if attributes ~= nil then + table.insert(buf, + "\\markdownRendererTableAttributeContextEnd{}") + end return buffer end end, extend_reader = function(self)