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

remark-grid-tables: column headers #292

Open
artragis opened this issue Oct 27, 2018 · 1 comment
Open

remark-grid-tables: column headers #292

artragis opened this issue Oct 27, 2018 · 1 comment
Labels
misc/help wanted This issue needs help semver/minor This is a backward-compatible change status/verified This has been checked by a maintainer type/request This is great to have

Comments

@artragis
Copy link
Member

artragis commented Oct 27, 2018

This is only a suggestion, if this seems too hard to perform it or too complex to include it to the plugin I understand this will be rejected.

I was writting a "truth table" for a tutorial and I was wondering if I could not make the columns be headers :

+---------+----------+----------+
|         |  C1 VRAI | C1 FAUX  |
+=========+==========+==========+
| C2 VRAI |  VRAI    |    FAUX  |
+=========+----------+----------+
| C2 FAUX |  FAUX    |    FAUX  |
+=========+----------+----------+

this would be interpreted as a table with the first row as header & the first column (we would have th instead of td in html)

<table>
    <thead>
        <tr>
            <th colspan="1" rowspan="1"></th>
            <th colspan="1" rowspan="1"><p>C1 VRAI</p></th>
            <th colspan="1" rowspan="1"><p>C1 FAUX</p></th>
        </tr>
     </thead>
     <tbody>
         <tr>
            <th colspan="1" rowspan="1"><p>C2 VRAI</p></th>
            <td colspan="1" rowspan="1"><p>VRAI</p></td>
           <td colspan="1" rowspan="1"><p>FAUX</p></td>
         </tr>
        <tr>
             <th colspan="1" rowspan="1"><p>C2 FAUX</p></th>
             <td colspan="1" rowspan="1"><p>FAUX</p></td>
             <td colspan="1" rowspan="1"><p>FAUX</p></td></tr></tbody></table>
@vhf
Copy link
Contributor

vhf commented Nov 29, 2018

Why not, although it may be quite hard to implement. remark-grid-tables is surprisingly complex.

Relevant html docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th

@vhf vhf added type/request This is great to have misc/help wanted This issue needs help labels Nov 29, 2018
@StaloneLab StaloneLab added semver/minor This is a backward-compatible change status/verified This has been checked by a maintainer labels Feb 3, 2020
@StaloneLab StaloneLab added this to the zmarkdown@tables milestone Dec 12, 2022
@StaloneLab StaloneLab removed this from the [email protected] milestone Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misc/help wanted This issue needs help semver/minor This is a backward-compatible change status/verified This has been checked by a maintainer type/request This is great to have
Projects
None yet
Development

No branches or pull requests

3 participants