for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This is part of the league/commonmark-ext-table package.
*
* (c) Martin Hasoň <[email protected]>
* (c) Webuni s.r.o. <[email protected]>
* (c) Colin O'Dell <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace League\CommonMark\Ext\Table;
use League\CommonMark\ConfigurableEnvironmentInterface;
use League\CommonMark\Extension\ExtensionInterface;
final class TableExtension implements ExtensionInterface
{
public function register(ConfigurableEnvironmentInterface $environment): void
$environment
->addBlockParser(new TableParser())
->addBlockRenderer(Table::class, new TableRenderer())
->addBlockRenderer(TableCaption::class, new TableCaptionRenderer())
->addBlockRenderer(TableRows::class, new TableRowsRenderer())
->addBlockRenderer(TableRow::class, new TableRowRenderer())
->addBlockRenderer(TableCell::class, new TableCellRenderer())
;
}