Error processing in container-phrasing.js
with specific markup combination
#63
Labels
💪 phase/solved
Post is done
container-phrasing.js
with specific markup combination
#63
Initial checklist
Affected packages and versions
[email protected]
, possibly[email protected]
Link to runnable example
https://github.com/vnphanquang/repro-mdast-util-to-markdown
Steps to reproduce
Reproduction
node index.js
More information
Note
this reproduction does involve
mdast-util-gfm
, however stack trace points tomdast-util-to-markdown
.Given this input:
I suspect the key troubling markup is at
<em><strong>Paragraph 2</strong></em>
. However, it does require an odd combination of being inside atable
and also having multiple paragraphs intd
to trigger the observed error.From my test, skipping...
mdast-util-to-markdown/lib/util/container-phrasing.js
Line 106 in ec4eaf0
...produces a successful output. That is:
However, I lack knowledge of the codebase to determine whether this change produces other false positive. Happy to open PR if given direction.
Expected behavior
Should output
output.md
Actual behavior
Error thrown as observed in console:
Affected runtime and version
[email protected]
Affected package manager and version
[email protected]
Affected OS and version
Linux 6.6 Arch Linux
Build and bundle tools
other (please specify in steps to reproduce)
The text was updated successfully, but these errors were encountered: