Skip to content

Commit 519b783

Browse files
authored
consistently don't list or number tables (#198)
1 parent 2f8a88c commit 519b783

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

filter/tabularx.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ function Table(tbl)
254254

255255
-- .unnumbered .unlisted is the traditional pair of classes Pandoc uses
256256
-- to omit something from the TOC. Let's keep that tradition alive.
257-
-- Also, omit tables with no caption or identifier as well.
257+
-- Also, omit tables with no caption as well.
258258
if (tbl.classes:find('unnumbered') and tbl.classes:find('unlisted'))
259-
or (caption == '' and tbl.identifier == '') then
259+
or (caption == '') then
260260
numbered = false
261261
end
262262

@@ -270,7 +270,7 @@ function Table(tbl)
270270
-- Undo this by decrementing the counter before starting the uncounted table.
271271
-- Decrementing the counter after the table can cause links in the list of tables to
272272
-- mistakenly point to the wrong table.
273-
if not numbered and escaped_caption ~= '' then
273+
if not numbered then
274274
latex_code = latex_code .. '\\addtocounter{table}{-1}\n'
275275
end
276276

0 commit comments

Comments
 (0)