mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
adding method for Container
This commit is contained in:
@@ -28,6 +28,10 @@ final class Container implements TransformableRenderable
|
||||
return $this->Contents;
|
||||
}
|
||||
|
||||
public function adding(Renderable $Renderable): Container
|
||||
{
|
||||
return new Container(\array_merge($this->Contents, [$Renderable]));
|
||||
}
|
||||
|
||||
/** @return string */
|
||||
public function getHtml()
|
||||
|
||||
Reference in New Issue
Block a user