html-to-md icon indicating copy to clipboard operation
html-to-md copied to clipboard

Doesn't work when table has <colgroup>

Open punkpeye opened this issue 1 year ago • 0 comments

Input:

<table style="min-width: 100px">
  <colgroup>
    <col><col>
    <col><col>
  </colgroup>
  <tbody>
    <tr>
      <th colspan="1" rowspan="1"><p>Name</p></th>
      <th colspan="3" rowspan="1"><p>Description</p></th>
    </tr>
    <tr>
      <td colspan="1" rowspan="1"><p>Cyndi Lauper</p></td>
      <td colspan="1" rowspan="1"><p>Singer</p></td>
      <td colspan="1" rowspan="1"><p>Songwriter</p></td>
      <td colspan="1" rowspan="1"><p>Actress</p></td>
    </tr>
  </tbody>
</table>

Actual output:

|||
<colgroup><col /><col /><col /><col /></colgroup>|---|---|
|Name|Description|
|Cyndi Lauper|Singer|Songwriter|Actress|

Expected output:

| Name | Description | | |
|------|------------|--|--|
| Cyndi Lauper | Singer | Songwriter | Actress |

punkpeye avatar Nov 18 '24 13:11 punkpeye