Skip to content

Commit

Permalink
fix(core): add rowspan and colspan
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Apr 9, 2020
1 parent 31718a1 commit 277a883
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/bytemd/src/Element.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,21 @@
<Elements nodes={children} {plugins} />
</tr>
{:else if tagName === 'th'}
<th {align} {width} {height}>
<th
{align}
{width}
{height}
rowspan={properties.rowSpan}
colspan={properties.colSpan}>
<Elements nodes={children} {plugins} />
</th>
{:else if tagName === 'td'}
<td {align} {width} {height}>
<td
{align}
{width}
{height}
rowspan={properties.rowSpan}
colspan={properties.colSpan}>
<Elements nodes={children} {plugins} />
</td>
{:else if tagName === 'hr'}
Expand Down

0 comments on commit 277a883

Please sign in to comment.