turndown-plugin-gfm icon indicating copy to clipboard operation
turndown-plugin-gfm copied to clipboard

Support HTML5 style alignment with CSS properties instead of just TH align

Open jleider opened this issue 7 years ago • 1 comments

jleider avatar Feb 21 '18 18:02 jleider

Hello @domchristie! Would you take a look at this PR, please? I have encountered problem with tables rendered by Redmine RedCarpet Formatter, text alignment is ignored and this change would solve it.

Table rendered by Redmine RedCarpet Formatter:

<table>
  <tbody>
    <tr><th>Name</th><th style="text-align: left;">Surname</th></tr>
    <tr><td>Foo</td><td>Bar</td></tr>
  </tbody>
</table>

Expected output

| Name | Surname |
| --- | :-- |
| Foo | Bar |

Thank you!

michbart avatar Jun 26 '20 12:06 michbart