-
-
Notifications
You must be signed in to change notification settings - Fork 210
Code blocks sometimes don't render first character #981
Copy link
Copy link
Open
Labels
bugSomething isn't working rightSomething isn't working rightdo not closeIssue which won't close due to inactivityIssue which won't close due to inactivityspec complianceIssues or question about compliance with the CommonMark or GFM specsIssues or question about compliance with the CommonMark or GFM specs
Metadata
Metadata
Assignees
Labels
bugSomething isn't working rightSomething isn't working rightdo not closeIssue which won't close due to inactivityIssue which won't close due to inactivityspec complianceIssues or question about compliance with the CommonMark or GFM specsIssues or question about compliance with the CommonMark or GFM specs
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:
