Unfortunately, standard Markdown syntax does not support merging cells or having a single value span multiple rows or columns in a table. If you want to have a single value span multiple rows or columns, you will need to repeat the value in each cell.
However, some Markdown parsers and editors, including Typora, support the use of HTML within Markdown documents. This means that you can use HTML table syntax to create more complex tables with merged cells or cells that span multiple rows or columns. Here’s an example:
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
<tr>
<td>Row 1, Column 1</td>
<td rowspan="2">Same Value</td>
<td>Row 1, Column 3</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 3</td>
</tr>
</table>
Header 1 | Header 2 | Header 3 |
---|---|---|
Row 1, Column 1 | Same Value | Row 1, Column 3 |
Row 2, Column 1 | Row 2, Column 3 |
Header 1 Header 2 Header 3
Row 1, Column 1 Same Value Row 1, Column 3
Row 2, Column 1 Row 2, Column 3
In this example, we used the rowspan attribute to specify that the cell with the value “Same Value” should span two rows.
Is there anything else you would like to know about creating tables in Typora using HTML syntax?