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
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