Page MenuHomePhabricator

Support colspan and rowspan in tables
Closed, WontfixPublic

Description

I would like to create a table that is structured like that:

---------------------
| 1a  |  1b  |  1c  |
|-------------------|
|  2ab       |  2c  |
|-------------------|
|  3a |   3bc       |
|-------------------|
| 4a  |      |  4c  |
|-----|  4b  |------|
| 5a  |      |  5c  |
|-------------------|

The table syntax of Remarkup should support colspan and rowspan to display more complex tables.

A solution could be to support colspan and rowspan in the table syntax:

<table>
  <tr>
    <td>1a</td>
    <td>1b</td>
    <td>1c</td>
  </tr>
  <tr>
    <td colspan="2">2ab</td>
    <td>2c</td>
  </tr>
  <tr>
    <td>3a</td>
    <td colspan="2">3bc</td>
  </tr>
  <tr>
    <td>4a</td>
    <td rowspan="2">4b</td>
    <td>4c</td>
  </tr>
  <tr>
    <td>5a</td>
    <td>5c</td>
  </tr>
</table>

and this syntax in the easy table:

|1a     |1b     |     1c|
|\2=.2ab        |     2c|
|3a     |\2=.3bc        |
|4a     |/2=.4b |4c     |
|5a     |             5c|