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 webuni/commonmark-table-extension package.
*
* (c) Martin Hasoň <[email protected]>
* (c) Webuni s.r.o. <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Webuni\CommonMark\TableExtension;
use League\CommonMark\Extension\Extension;
class TableExtension extends Extension
{
public function getBlockParsers(): array
return [
new TableParser(),
];
}
public function getBlockRenderers(): array
__NAMESPACE__.'\\Table' => new TableRenderer(),
__NAMESPACE__.'\\TableCaption' => new TableCaptionRenderer(),
__NAMESPACE__.'\\TableRows' => new TableRowsRenderer(),
__NAMESPACE__.'\\TableRow' => new TableRowRenderer(),
__NAMESPACE__.'\\TableCell' => new TableCellRenderer(),
public function getName(): string
return 'table';