mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Tables always acquire previous
This commit is contained in:
@@ -18,9 +18,6 @@ use Erusev\Parsedown\State;
|
|||||||
*/
|
*/
|
||||||
final class Table implements AcquisitioningBlock, ContinuableBlock
|
final class Table implements AcquisitioningBlock, ContinuableBlock
|
||||||
{
|
{
|
||||||
/** @var bool */
|
|
||||||
private $acquired;
|
|
||||||
|
|
||||||
/** @var array<int, _Alignment|null> */
|
/** @var array<int, _Alignment|null> */
|
||||||
private $alignments;
|
private $alignments;
|
||||||
|
|
||||||
@@ -34,14 +31,12 @@ final class Table implements AcquisitioningBlock, ContinuableBlock
|
|||||||
* @param array<int, _Alignment|null> $alignments
|
* @param array<int, _Alignment|null> $alignments
|
||||||
* @param array<int, string> $headerCells
|
* @param array<int, string> $headerCells
|
||||||
* @param array<int, array<int, string>> $rows
|
* @param array<int, array<int, string>> $rows
|
||||||
* @param bool $acquired
|
|
||||||
*/
|
*/
|
||||||
private function __construct($alignments, $headerCells, $rows, $acquired = false)
|
private function __construct($alignments, $headerCells, $rows)
|
||||||
{
|
{
|
||||||
$this->alignments = $alignments;
|
$this->alignments = $alignments;
|
||||||
$this->headerCells = $headerCells;
|
$this->headerCells = $headerCells;
|
||||||
$this->rows = $rows;
|
$this->rows = $rows;
|
||||||
$this->acquired = $acquired;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -91,7 +86,7 @@ final class Table implements AcquisitioningBlock, ContinuableBlock
|
|||||||
|
|
||||||
# ~
|
# ~
|
||||||
|
|
||||||
return new self($alignments, $headerCells, [], true);
|
return new self($alignments, $headerCells, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user