From 652b605739a7a851eae95e526e9addf00e70b78c Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 24 Jun 2024 04:56:36 +0300 Subject: [PATCH] fix inline code parser --- src/Parser/Code.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parser/Code.php b/src/Parser/Code.php index 39bde6b..2b3973e 100644 --- a/src/Parser/Code.php +++ b/src/Parser/Code.php @@ -17,7 +17,7 @@ class Code { // Inline ^```preformatted``` case preg_match( - '/^(?[`]{3})(?[^`]+)(?[`]{3})$/m', + '/^(?[`]{3})(?[^`]+)(?[`]{3})$/m', $line, $matches ): @@ -68,7 +68,7 @@ class Code if (self::match($line, $matches)) { - return isset($matches['inline']); + return isset($matches['close']); } return false;