Closed susisu closed 3 years ago
This is a bug! Specifically, in micromark-extension-gfm-table
. A similar bug is also in remark-frontmatter
through micromark-extension-frontmatter
. It is something that isn’t present in normal markdown (commonmark), because there multiline blocks are defined by their first line, but for frontmatter the last line defines it, and for tables the second line (alignment row).
Subject of the issue
I'm upgrading
remark-parse
from 8.0.3 to 9.0.0 and usingremark-gfm
.I found that the following indented list items example from CommonMark / GFM specs yields a different result from the specs.
I don't think the package should be 100% spec compliant, and I'm sorry if it's actually working as intended.
Your environment
unified@9.2.0
remark-pase@9.0.0
remark-gfm@1.0.0
remark-rehype@8.0.0
rehype-stringify@8.0.0
Steps to reproduce
See https://codesandbox.io/s/charming-dew-m14g7?file=/src/index.js
Expected behavior
As the specs say:
Actual behavior
Without
remark-gfm
, it works as expected.The next example in the spec shows a result like this, but it's because there is a blank line before
3. c
.