-
-
Notifications
You must be signed in to change notification settings - Fork 44
Drop the TableHeader
node
#6
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
Comments
@eush77 Thoughts? |
As a slight aside, maybe also rename |
Table header is a row, so it certainly makes sense to merge the two. However, there is some semantic distinction, so I'm not so sure about this. It seems like
Would you also rename |
You’re right, The reason for dropping If other markdown flavours included ways to add multiple header rows, e.g., if the following syntax would ever be considered OK, the | foo | bar |
| baz | qux |
| --- | --- |
| quu | qxu | But I doubt that would happen. And a final reason to keep the |
Could you expand on this? As I see, compilers can either compile the In the second case (compiling table-headers and table-rows) compilers could benefit from removing Re multiline headers: multiline headings (not the same thing, but close) could be coming in future versions of Commonmark:
|
I meant that its possible for an AST to have two
No, it’s not very compelling, indeed. My feeling is that it’s prettier to use
Oh wow, didn’t see that one coming. Not sure if they’ll ever implement it though. But it’s good to keep in mind! Generally, are you in favour of changing this? I think we now they up- and downsides now, and I’d say one less node-type is for the better! |
Didn't this of that. +1 for removing.
Definitely. +1 for removing.
You mean something like
I was and remain neutral on this. Now I'm a little bit convinced for removing this type. It's not needed, and less moving parts is usually better. |
Good, then it’s decided, I’ll remove it. Less moving parts is more better! |
Related to syntax-tree/mdast#6. Closes GH-152.
Related to syntax-tree/mdast#6. Closes GH-152.
There’s no need to distinguish between table-headers and table-rows, as all markdown tables contain a single header row.
The text was updated successfully, but these errors were encountered: