Try to fix unit test error.
This commit is contained in:
parent
fbc3604077
commit
b9604e39bd
1 changed files with 3 additions and 3 deletions
|
|
@ -1196,7 +1196,7 @@ class MarkdownExtra extends \Michelf\Markdown {
|
||||||
$head = $matches[1];
|
$head = $matches[1];
|
||||||
$underline = $matches[2];
|
$underline = $matches[2];
|
||||||
$content = $matches[3];
|
$content = $matches[3];
|
||||||
$id_class = $matches[4];
|
$id_class = $matches[4] ?? null;
|
||||||
|
|
||||||
$content = preg_replace('/^ *[|]/m', '', $content);
|
$content = preg_replace('/^ *[|]/m', '', $content);
|
||||||
|
|
||||||
|
|
@ -1226,7 +1226,7 @@ class MarkdownExtra extends \Michelf\Markdown {
|
||||||
$head = $matches[1];
|
$head = $matches[1];
|
||||||
$underline = $matches[2];
|
$underline = $matches[2];
|
||||||
$content = $matches[3];
|
$content = $matches[3];
|
||||||
$id_class = $matches[4];
|
$id_class = $matches[4] ?? null;
|
||||||
$attr = [];
|
$attr = [];
|
||||||
|
|
||||||
// Remove any tailing pipes for each line.
|
// Remove any tailing pipes for each line.
|
||||||
|
|
@ -1256,7 +1256,7 @@ class MarkdownExtra extends \Michelf\Markdown {
|
||||||
|
|
||||||
// Write column headers.
|
// Write column headers.
|
||||||
$table_attr_str = $this->doExtraAttributes('table', $id_class, null, []);
|
$table_attr_str = $this->doExtraAttributes('table', $id_class, null, []);
|
||||||
$text = "<table {$table_attr_str}>\n";
|
$text = "<table$table_attr_str>\n";
|
||||||
$text .= "<thead>\n";
|
$text .= "<thead>\n";
|
||||||
$text .= "<tr>\n";
|
$text .= "<tr>\n";
|
||||||
foreach ($headers as $n => $header) {
|
foreach ($headers as $n => $header) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue