. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Contracts; use Fisharebest\Webtrees\Tree; /** * Create a markdown converter. */ interface MarkdownFactoryInterface { /** * @param string $markdown * @param Tree|null $tree * * @return string */ public function autolink(string $markdown, Tree|null $tree = null): string; /** * @param string $markdown * @param Tree|null $tree * * @return string */ public function markdown(string $markdown, Tree|null $tree = null): string; }