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;