Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't strip <thead>, <tbody> & <tfoot> tags in tables #24

Open
EvitanRelta opened this issue Dec 20, 2022 · 0 comments
Open

Don't strip <thead>, <tbody> & <tfoot> tags in tables #24

EvitanRelta opened this issue Dec 20, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@EvitanRelta
Copy link
Owner

The coloring for the rows might be different if they are stripped:

Description HTML-in-markdown Rendered HTML
No <thead>, <tbody> nor <tfoot>
<table>
  <tr>
    <th>Header 1</th>
    <th>Header 2</th>
  </tr>
  <tr>
    <td>Cell 1.1</td>
    <td>Cell 1.2</td>
  </tr>
  <tr>
    <td>Cell 2.1</td>
    <td>Cell 2.2</td>
  </tr>
</table>
Header 1 Header 2
Cell 1.1 Cell 1.2
Cell 2.1 Cell 2.2
With <thead> and <tbody> only
<table>
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cell 1.1</td>
      <td>Cell 1.2</td>
    </tr>
    <tr>
      <td>Cell 2.1</td>
      <td>Cell 2.2</td>
    </tr>
  </tbody>
</table>
Header 1 Header 2
Cell 1.1 Cell 1.2
Cell 2.1 Cell 2.2
With <thead>, <tbody> and <tfoot>
<table>
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Cell 1.1</td>
      <td>Cell 1.2</td>
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td>Cell 2.1</td>
      <td>Cell 2.2</td>
    </tr>
  </tfoot>
</table>
Header 1 Header 2
Cell 1.1 Cell 1.2
Cell 2.1 Cell 2.2
@EvitanRelta EvitanRelta added the bug Something isn't working label Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant