1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Fix whitespace errors

This commit is contained in:
Aidan Woods
2019-01-28 20:30:56 +00:00
parent 42d21a2413
commit a2bca78f7e
9 changed files with 24 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ final class SetextHeader implements Block
if ($Context->line()->indent() < 4 && \chop(\chop($Context->line()->text(), " \t"), $Context->line()->text()[0]) === '') {
$level = $Context->line()->text()[0] === '=' ? 1 : 2;
return new self($Block->text(), $level);
return new self(\trim($Block->text()), $level);
}
return null;