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

Header information not parsed for example table #5

Closed
cco3 opened this issue Jan 5, 2021 · 1 comment
Closed

Header information not parsed for example table #5

cco3 opened this issue Jan 5, 2021 · 1 comment
Labels
🙋 no/question This does not need any changes

Comments

@cco3
Copy link

cco3 commented Jan 5, 2021

https://astexplorer.net/#/gist/0a92bbf654aca4fdfb3f139254cf0bad/a1cde03a6021091b767d1771fcbdbcc2b93431a0

I'd expect the cells above the dividing line to be marked as th elements in someway, but I see nothing here.

@cco3 cco3 added 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Jan 5, 2021
@ChristianMurphy
Copy link
Member

ChristianMurphy commented Jan 5, 2021

It is parsed, and is encoded positionally, this is noted in the mdast spec:

https://github.com/syntax-tree/mdast#tablecell

TableCell (Parent) represents a header cell in a Table, if its parent is a head, or a data cell otherwise.

and the reference for head

Head

The head of a node is its first child (if any).

in other words, the first row will always be the header.

@ChristianMurphy ChristianMurphy added 🙋 no/question This does not need any changes and removed 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes
Development

No branches or pull requests

2 participants