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

Remove closing # sequence from header

This commit is contained in:
Aidan Woods 2019-01-22 23:18:09 +00:00
parent 9d97b8eb6a
commit b8cdc6e9a5
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -69,6 +69,9 @@ final class Header implements Block
$text = \trim($text, " \t");
# remove closing sequence
$text = \rtrim(\rtrim($text, '#'), " \t");
return new self($text, $level);
}