Skip to content

Commit

Permalink
React to option tableAttributes in extensions.pipe_tables reader
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jul 21, 2023
1 parent 1f1a3ec commit 5395266
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -29619,7 +29619,7 @@ end
%
% \end{markdown}
% \begin{macrocode}
M.extensions.pipe_tables = function(table_captions, table_attributes) -- luacheck: ignore table_attributes
M.extensions.pipe_tables = function(table_captions, table_attributes)

local function make_pipe_table_rectangular(rows)
local num_columns = #rows[2]
Expand Down Expand Up @@ -29771,7 +29771,19 @@ M.extensions.pipe_tables = function(table_captions, table_attributes) -- luachec
if table_captions then
table_caption = #table_caption_beginning
* table_caption_beginning
* Ct(parsers.IndentedInline^1)
if table_attributes then
table_caption = table_caption
* Ct((parsers.IndentedInline
-( parsers.optionalspace
* parsers.attributes))^0)
* parsers.optionalspace
* Ct(parsers.attributes)
* parsers.optionalspace
else
table_caption = table_caption
* Ct(parsers.IndentedInline^0)
end
table_caption = table_caption
* parsers.newline
else
table_caption = parsers.fail
Expand Down

0 comments on commit 5395266

Please sign in to comment.