Files
pandoc/test/command/11849.md
T
John MacFarlane c54ad9ef75 Typst writer: emit label for bare table if present.
Previously a label was only emitted if the table was figurized
(and not `.typst:no-figure`).

Closes #11849.
2026-09-08 08:34:30 -07:00

494 B

% pandoc -t typst
| A | B |
|---|---|
| 1 | 2 |

: Example {#table-id}
^D
#figure(
  align(center)[#table(
    columns: 2,
    align: (auto,auto,),
    table.header([A], [B],),
    table.hline(),
    [1], [2],
  )]
  , caption: [Example]
  , kind: table
  )
<table-id>

% pandoc -t typst
| A | B |
|---|---|
| 1 | 2 |

: Example {#table-id .typst:no-figure}
^D
#table(
  columns: 2,
  align: (auto,auto,),
  table.header([A], [B],),
  table.hline(),
  [1], [2],
)
<table-id>