Code blocks sometimes don't render first character #981
Labels
bug
Something isn't working right
do not close
Issue which won't close due to inactivity
spec compliance
Issues or question about compliance with the CommonMark or GFM specs
Milestone
Version(s) affected
2.3, 2.4
Description
Hey there
We switched our markdown interpreter to commonmark. While reviewing old texts with the new markdown interpreter I noticed a strange behavior. In a special scenario with code blocks, tabs and lists, the resulting markdown 'forgets' the first character of a given code block.
I can reproduce it in a commonmark only project and will give you the code example below.
How to reproduce
I had a clean folder and only run
composer require league/commonmark
.I created a index.php and filled it with following code:
I ran
php -S localhost:8000 -t .
The resulting output is:
The text was updated successfully, but these errors were encountered: