diff options
| author | John MacFarlane <[email protected]> | 2025-10-02 13:07:50 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-10-02 13:37:53 +0200 |
| commit | e201e3370a96b2bb65940513e69969f2f9cf460b (patch) | |
| tree | a98bf235b8c7bed69bd2e28a99fc471726977d52 /test/command | |
| parent | 127e397a6db1d71c10b1688453660aceaf363d26 (diff) | |
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`.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/10884.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command/10884.md b/test/command/10884.md new file mode 100644 index 000000000..111463493 --- /dev/null +++ b/test/command/10884.md @@ -0,0 +1,17 @@ +``` +% 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"} + +``` |
