-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Error: Cannot handle unknown node table
#543
Comments
@niftylettuce please fill out the issue template https://github.com/remarkjs/.github/blob/main/.github/ISSUE_TEMPLATE/1-bug.md |
Also if you recently upgrade to latest, please see the release notes: https://github.com/remarkjs/remark/releases/tag/13.0.0
|
I've narrowed it down to |
@niftylettuce Please do not remove issue templates: I can understand newcomers forgetting that but you have significant experience here on GH. The answer you are looking for is as Christian pointed out documented in the migration section on the release notes. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@milahu It seems you have not read the thread. You should use |
i want to produce "strict markdown" with html tables, so the error message is a bit obscure to a unifiedjs noob like me, so im sharing my solution here |
Okay! The main solution to this error that I believe most folks are looking for when they stumble here, is: use If you don’t want GFM, your solution works (as you note, not all HTML can be represented in markdown though). For more info, see: https://github.com/rehypejs/rehype-remark#example-keeping-some-html. |
Getting this error using latest version of all remark plugins, CLI, etc. (I'm working locally and version bumped everything to latest).
README.md 1:1 error Error: Cannot handle unknown node `table` at Object.unknown (/Users/user/Projects/eslint-config-xo-lass/node_modules/mdast-util-to-markdown/lib/index.js:52:9) at Object.one [as handle] (/Users/user/Projects/eslint-config-xo-lass/node_modules/zwitch/index.js:20:25) at flow (/Users/user/Projects/eslint-config-xo-lass/node_modules/mdast-util-to-markdown/lib/util/container-flow.js:18:15) at root (/Users/user/Projects/eslint-config-xo-lass/node_modules/mdast-util-to-markdown/lib/handle/root.js:6:10) at one (/Users/user/Projects/eslint-config-xo-lass/node_modules/zwitch/index.js:20:25) at toMarkdown (/Users/user/Projects/eslint-config-xo-lass/node_modules/mdast-util-to-markdown/lib/index.js:25:16) at compile (/Users/user/Projects/eslint-config-xo-lass/node_modules/remark-stringify/index.js:13:12) at Function.stringify (/Users/user/Projects/eslint-config-xo-lass/node_modules/unified/index.js:354:12) at stringify (/Users/user/Projects/eslint-config-xo-lass/node_modules/unified-engine/lib/file-pipeline/stringify.js:45:23) at wrapped (/Users/user/Projects/eslint-config-xo-lass/node_modules/trough/wrap.js:25:19)
The text was updated successfully, but these errors were encountered: