Skip to content

Inline code value incorrectly parsed  #494

@fisker

Description

@fisker

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 prettier/prettier#8140 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions