From 7b44f3b42e23b0553eb4ce271b317a96ff456493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoe=CC=88=20Blade?= Date: Fri, 26 Apr 2024 12:31:38 +0100 Subject: [PATCH] Fix multiple preformatted cells in table rows --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index ae0cbdecd..2084927c5 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -1033,7 +1033,7 @@ protected function blockTableContinue($Line, array $Block) $row = trim($row); $row = trim($row, '|'); - preg_match_all('/(?:(\\\\[|])|[^|`]|`[^`]++`|`)++/', $row, $matches); + preg_match_all('/(?:(\\\\[|])|[^|`]|`[^|`]++`|`)++/', $row, $matches); $cells = array_slice($matches[0], 0, count($Block['alignments']));