File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -254,9 +254,9 @@ function Table(tbl)
254
254
255
255
-- .unnumbered .unlisted is the traditional pair of classes Pandoc uses
256
256
-- 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.
258
258
if (tbl .classes :find (' unnumbered' ) and tbl .classes :find (' unlisted' ))
259
- or (caption == ' ' and tbl . identifier == ' ' ) then
259
+ or (caption == ' ' ) then
260
260
numbered = false
261
261
end
262
262
@@ -270,7 +270,7 @@ function Table(tbl)
270
270
-- Undo this by decrementing the counter before starting the uncounted table.
271
271
-- Decrementing the counter after the table can cause links in the list of tables to
272
272
-- mistakenly point to the wrong table.
273
- if not numbered and escaped_caption ~= ' ' then
273
+ if not numbered then
274
274
latex_code = latex_code .. ' \\ addtocounter{table}{-1}\n '
275
275
end
276
276
You can’t perform that action at this time.
0 commit comments