Files
John MacFarlane e201e3370a Markdown tables: implement table_attributes extension.
When `table_attributes` is enabled (as it is by default for
pandoc's Markdown), attributes can be attached to a table by
including them at the end of the caption. Previously the writer
would emit an identifier in this position, but the reader didn't
handle it. Now arbitrary attributes are allowed, and they work in
both the reader and writer.

Closes #10884.

[API change]: Text.Pandoc.Extensions: Add `Ext_table_attributes`
constructor for `Extension`.
2025-10-02 13:37:53 +02:00

285 B

% pandoc -f markdown -t markdown
  header1   header2
  --------- ---------
  r1c1      r1c2
  r2c1      r2c2

  : mycaption {#myid .myclass key="value"}
^D
  header1   header2
  --------- ---------
  r1c1      r1c2
  r2c1      r2c2

  : mycaption {#myid .myclass key="value"}