Remark: Inline code `value` incorrectly parsed

Created on 14 May 2020  路  4Comments  路  Source: remarkjs/remark

Subject of the issue

Inline code value incorrectly parsed for

`
 a
`

I didn't found the spec, but commonmark parse value as "a", remark parse value as " a", github also render as "a".

This is not a place to ask questions. For that, go to spectrum

Your environment

Steps to reproduce

require('unified')().use(require('remark-parse')).parse('`\n a\n`').children[0].children[0].value

Expected behaviour

the value of inlineCode node be "a"

Actual behaviour

the value of inlineCode node is " a"


More info https://github.com/prettier/prettier/pull/8140#discussion_r421797658

remark-parse 鉀碉笍 statureleased 馃悰 typbug 馃懚 semvepatch 馃梽 areinterface

All 4 comments

Thanks @fisker! Same response as https://github.com/remarkjs/remark/issues/493#issuecomment-627540363, keep 鈥檈m coming!

Heya, just wanted to give an update about micromark, it鈥檚 sort-of a new motor that we鈥檒l soon use in remark to parse markdown. It鈥檚 not yet 100% ready but will be relatively soon. The good news is, it fixes this issue! (P.S. see this twitter thread for some more info!)

Sorry for the wait! I just wanted to share that there鈥檚 now a PR that solves this issue: https://github.com/remarkjs/remark/pull/536.

This is now released in [email protected]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niksurff picture niksurff  路  4Comments

gengjiawen picture gengjiawen  路  4Comments

saramarcondes picture saramarcondes  路  5Comments

rauschma picture rauschma  路  4Comments

niftylettuce picture niftylettuce  路  4Comments