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

Feature Request: Table conversion to html should have thead element if header exists for table #940

Closed
gaurangkher opened this issue Jul 13, 2020 · 1 comment
Assignees
Labels

Comments

@gaurangkher
Copy link
Contributor

gaurangkher commented Jul 13, 2020

Syntax

default

Description

When table is converted to html , the table headers are part of tbody tag instead of thead tag.
If a wiki table has headers they should be added to the thead tag
Javascript libraries like datatables rely heavily on table headers to be contained inside thead tag.

Eg: Currently

| header1 | header1 |
|---------|---------|
|  val1    | val2    |

is converted to

<table>
    <tr>
       <th> header1</th>
       <th> header2 </th>
    </tr>
    <tr>
       <td> val1 </td>
       <td> val2 </td>
    </tr> 
</table>

However This should be converted as below:

<table>
   <thead>
    <tr>
       <th> header1</th>
       <th> header2 </th>
    </tr>
   </thead>
   <tbody>
    <tr>
       <td> val1 </td>
       <td> val2 </td>
    </tr> 
   </tbody>
</table>
@tinmarino
Copy link
Member

Closed by #940

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants