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

We don't need to pass a Parsedown instance down

Since Parsedown is instancible from State, we only
need to carry that down.
This commit is contained in:
Aidan Woods
2019-01-25 21:39:37 +00:00
parent b89bd0e3c2
commit 11da347aa1
28 changed files with 53 additions and 69 deletions

View File

@@ -8,7 +8,6 @@ use Erusev\Parsedown\Components\Inline;
use Erusev\Parsedown\Configurables\SafeMode;
use Erusev\Parsedown\Html\Renderables\RawHtml;
use Erusev\Parsedown\Html\Renderables\Text;
use Erusev\Parsedown\Parsedown;
use Erusev\Parsedown\Parsing\Excerpt;
use Erusev\Parsedown\State;
@@ -59,7 +58,7 @@ final class Markup implements Inline
/**
* @return Handler<Text|RawHtml>
*/
public function stateRenderable(Parsedown $_)
public function stateRenderable()
{
return new Handler(
/** @return Text|RawHtml */