1
0
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:
Aidan Woods
2021-10-13 19:00:24 +01:00
parent 71d9263664
commit a9f41548d3
2 changed files with 8 additions and 0 deletions

View File

@@ -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()