We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
csvtk version
This subcommand would make an HTML table to modern spec.
<TABLE> <THEAD> <TR> <TH> ID <TH> value <TH> meta </TR> </THEAD> <TBODY> <TR><TD> covid <TD> 2020<TD> bad </TR> <TR><TD> sars <TD> 2021<TD> worse </TR> <TR><TD> flu <TD> 2022<TD> ok </TR> </TBODY> </TABKE>
Maybe options to set the HTML CSS Class <TABLE CLASS="xxxxx">
<TABLE CLASS="xxxxx">
And the caption <CAPTION> xxxxxxxxxxx </CAPTION>
<CAPTION> xxxxxxxxxxx </CAPTION>
The text was updated successfully, but these errors were encountered:
It's not complicated but existed tools like pandoc can easily convert markdown to HTML, though there are no options to set table class and caption.
pandoc
$ cat names.csv | csvtk csv2md | pandoc <table> <thead> <tr class="header"> <th style="text-align: left;">id</th> <th style="text-align: left;">first_name</th> <th style="text-align: left;">last_name</th> <th style="text-align: left;">username</th> </tr> </thead> <tbody> <tr class="odd"> <td style="text-align: left;">11</td> <td style="text-align: left;">Rob</td> <td style="text-align: left;">Pike</td> <td style="text-align: left;">rob</td> </tr> <tr class="even"> <td style="text-align: left;">2</td> <td style="text-align: left;">Ken</td> <td style="text-align: left;">Thompson</td> <td style="text-align: left;">ken</td> </tr> <tr class="odd"> <td style="text-align: left;">4</td> <td style="text-align: left;">Robert</td> <td style="text-align: left;">Griesemer</td> <td style="text-align: left;">gri</td> </tr> <tr class="even"> <td style="text-align: left;">1</td> <td style="text-align: left;">Robert</td> <td style="text-align: left;">Thompson</td> <td style="text-align: left;">abc</td> </tr> <tr class="odd"> <td style="text-align: left;">NA</td> <td style="text-align: left;">Robert</td> <td style="text-align: left;">Abel</td> <td style="text-align: left;">123</td> </tr> </tbody> </table>
Sorry, something went wrong.
There are existing tools to do CSV to MD and JSON too, but you implemented those :-)
No branches or pull requests
Prerequisites
csvtk version
Describe your issue
csvtk csv2html
This subcommand would make an HTML table to modern spec.
Maybe options to set the HTML CSS Class
<TABLE CLASS="xxxxx">
And the caption
<CAPTION> xxxxxxxxxxx </CAPTION>
The text was updated successfully, but these errors were encountered: