Replies: 4 comments 3 replies
-
No, rowspans and colspans are not supported in simple markdown tables. With that said, Quarto understands HTML tables: https://quarto.org/docs/authoring/tables.html#html-tables This might work well enough for your case. |
Beta Was this translation helpful? Give feedback.
-
There is Pandoc grid tables, see https://pandoc.org/chunkedhtml-demo/8.9-tables.html. +---------------------+-----------------------+
| Location | Temperature 1961-1990 |
| | in degree Celsius |
| +-------+-------+-------+
| | min | mean | max |
+=====================+=======+=======+=======+
| Antarctica | -89.2 | 19.8 |
+---------------------+-------+-------+-------+
| Earth | -89.2 | 14 | 56.7 |
+---------------------+-------+-------+-------+ |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, @cscheid and @mcanouil , for your answers. I have to confess that I'm not particularly satisfied by the current tables supported by Quarto. Please let me explain why.
It is most likely that a real table looks something like this:
All considered, I could live with it, in particular if tabs are accepted and can help create some sort of internal alignment. Unfortunately, Quarto can't merge cells (using the syntax I saw proposed for CommonMark, using the "^" and "||" symbols).
The worse problem, with this format, is that the content is broken into separate lines, and can no longer be parsed by language tools (like CAT tools, that can identify an unit by the ending period).
The advantage of this format is that complex tables are perfectly readable. Everything is set in a symmetric disposition. It doesn't look like a table, but Markdown is meant to deal with content, not appearance. So, I would appreciate it for its scope. Paolo |
Beta Was this translation helpful? Give feedback.
-
Just as a followup: I could add the list-table filter developed by Martin Fisher. https://github.com/pandoc-ext/list-table I'm not totally sure this is documented in the excellent Quarto documentation, but I just had to put the
Quarto rendered my list table without a hassle. Beautiful! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi,
Is there a way to merge table cells, both horizontally and vertically? That is in cases where a cell's content can span across multiple cells, maybe because it gives the same answer to multiple questions.
I've tried with using a double pipe (||) for merging cells horizontally, or the circumflex accent (^) for merging vertically, but it doesn't render as expected.
Is this possible? If not, are there suggested workarounds?
Beta Was this translation helpful? Give feedback.
All reactions