mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-17 06:47:14 +00:00
e201e3370a
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`.
285 B
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"}