diff --git a/composer.json b/composer.json index fe15963..c425a0e 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "php": ">= 7.1", "nette/di": "~2.4.10", "nette/utils": "~2.5.2", - "latte/latte": "~2.4.7", + "latte/latte": "~2.4.7|~2.5.1", "erusev/parsedown-extra": "^0.7.1", "erusev/parsedown": "~1.7.1" }, @@ -51,5 +51,10 @@ "phpstan": [ "temp/phpstan/vendor/bin/phpstan analyse -l max -c phpstan.neon src" ] + }, + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } } } diff --git a/src/ParsedownFilter.php b/src/ParsedownFilter.php index 5894e84..cbebc5b 100644 --- a/src/ParsedownFilter.php +++ b/src/ParsedownFilter.php @@ -3,7 +3,6 @@ namespace Contributte\Parsedown; use Latte\Runtime\FilterInfo; -use Latte\Runtime\Html; class ParsedownFilter { @@ -19,9 +18,9 @@ public function __construct(ParsedownExtraAdapter $adapter) /** * @param mixed $text */ - public function apply(FilterInfo $info, $text): Html + public function apply(FilterInfo $info, $text): string { - return new Html($this->adapter->process($text)); + return $this->adapter->process($text); } }