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