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:
parent
9d97b8eb6a
commit
b8cdc6e9a5
@ -69,6 +69,9 @@ final class Header implements Block
|
|||||||
|
|
||||||
$text = \trim($text, " \t");
|
$text = \trim($text, " \t");
|
||||||
|
|
||||||
|
# remove closing sequence
|
||||||
|
$text = \rtrim(\rtrim($text, '#'), " \t");
|
||||||
|
|
||||||
return new self($text, $level);
|
return new self($text, $level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user