Closed chrisrzhou closed 4 years ago
Tables is a GFM feature. I’m currently working on adding syntax extensions based on micromark to these newer projects. This extension would be in mdast-util-gfm-table or so.
Makes sense!
Thank you and looks like you are intending to support https://github.com/syntax-tree/mdast-util-gfm soon! Awesome sauce!
Soooon!
Is this worth for documentation? I just waste a few minutes for it. 🤣
And also remark-stringify.
Error serializing
Table
nodesWhen providing a
Table
node to serialize, we get an error of not being able to handle thetable
node.Env
Mac@10.15.6
mdast-util-to-markdown@0.2.0
npm@6.14.4, node@12.18.0
Repro
Try any
Table
node. The codesandbox uses an example table node from the mdast docs. https://codesandbox.io/s/gifted-butterfly-yxnzx?file=/src/index.jsExpected behavior
Should serialize mdast
Table
node without errorActual behavior
Error thrown with
Cannot handle unknown node table