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:
@@ -5,7 +5,6 @@ namespace Erusev\Parsedown\Components\Blocks;
|
||||
use Erusev\Parsedown\AST\StateRenderable;
|
||||
use Erusev\Parsedown\Components\Block;
|
||||
use Erusev\Parsedown\Html\Renderables\Element;
|
||||
use Erusev\Parsedown\Parsedown;
|
||||
use Erusev\Parsedown\Parsing\Context;
|
||||
use Erusev\Parsedown\State;
|
||||
|
||||
@@ -43,7 +42,7 @@ final class Rule implements Block
|
||||
/**
|
||||
* @return Element
|
||||
*/
|
||||
public function stateRenderable(Parsedown $_)
|
||||
public function stateRenderable()
|
||||
{
|
||||
return Element::selfClosing('hr', []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user