Skip to content

Commit a7e6ef7

Browse files
author
Al Manning
committed
clear the style from the table to prevent overly-wide grid tables
1 parent a96ca2c commit a7e6ef7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/resources/extensions/quarto/confluence/publish.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ function Writer (doc, opts)
4242
codeBlock.classes[1] or '')
4343
return pandoc.RawBlock('html', renderString)
4444
end,
45-
Table = function (tbl)
46-
local caption = tbl.caption.long
47-
tbl.caption = {}
48-
return {tbl} .. caption
45+
Table = function (table)
46+
-- Grid tables add a width style that widens the table, remove it
47+
table.attributes.style = ""
48+
local head = table.head
49+
local caption = table.caption.long
50+
return { table } .. caption
4951
end
5052
}
5153

0 commit comments

Comments
 (0)