Skip to content

Weird interaction of code block with other block parsers #1007

@dkarlovi

Description

@dkarlovi

Version(s) affected

2.4.1

Description

In JanStanleyWatt/commonmark-figure-extension#13 I've added a failing test for the figure extension, using it will truncate leading spaces in the code block.

I understand this is a bug report on a different repo, but debugging this issue it seems (to me) it's a bug in core, the parser there doesn't seem to be doing anything obviously wrong and it's using the core features to do what it needs to. When debugging the child code block node, it already has the whitespace truncated when it's being rendered, and the extension is not doing the parsing there.

Any hints would be appreciated, cheers!

How to reproduce

Try out JanStanleyWatt/commonmark-figure-extension#13

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidNot a bug or not directly to this projectquestionGeneral questions about the project or usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions