Closed EvHaus closed 3 years ago
Make sure to update all the remark deps. Could you check if that works?
Thanks for the super fast response. Yeah, the problem was that I was using remark
12. Upgrading to 14.0.1 fixed the issue. 👍
Could you please update the version in the CodeSandbox template in the issue template? That would have helped me catch the issue. I was lucky that the CodeSandbox version was as outdated as my local project :)
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
Perf!
I’ve updated everything I’ve got access to. Maybe @ChristianMurphy has some more sandboxes that can be updated?
The main three are in the issue template/issue form.
Initial checklist
Affected packages and versions
micromark-extension-gfm-table@^1.0.0
Link to runnable example
https://codesandbox.io/s/remark-debug-forked-q95c5?file=/src/index.js
Steps to reproduce
Feed the following markdown into
remark-gfm
:or to be more clear (note the whitespace):
I can't quite figure out the exact condition for this. Seems like the presence of a line break (
\n
) somewhere in the input causes the crash. At the end -- definitely crash. At the start -- sometimes crash.Expected behavior
Properly parsed response, ie.
* Task 1
Actual behavior
micromark-extension-gfm-table
crashes withTypeError: Cannot read property '3' of undefined
.Full stack trace:
Failing line:
Runtime
Google Chrome
Package manager
yarn v1
OS
macOS
Build and bundle tools
Webpack