mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Expand public API of Components
Ref: https://github.com/erusev/parsedown/issues/694
This commit is contained in:
@@ -29,7 +29,7 @@ final class PlainText implements Inline
|
||||
* @param State $State
|
||||
* @return static
|
||||
*/
|
||||
public static function build(Excerpt $Excerpt, State $State = null)
|
||||
public static function build(Excerpt $Excerpt, State $State)
|
||||
{
|
||||
return new self($Excerpt->text());
|
||||
}
|
||||
@@ -45,7 +45,7 @@ final class PlainText implements Inline
|
||||
*/
|
||||
public function stateRenderable()
|
||||
{
|
||||
return new Text($this->text);
|
||||
return new Text($this->text());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -53,6 +53,6 @@ final class PlainText implements Inline
|
||||
*/
|
||||
public function bestPlaintext()
|
||||
{
|
||||
return new Text($this->text);
|
||||
return new Text($this->text());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user