diff --git a/src/server.php b/src/server.php index cba7f8d..ca02512 100644 --- a/src/server.php +++ b/src/server.php @@ -558,8 +558,8 @@ $server->setHandler( $result[] = trim( preg_replace( [ - '/(^|\s+)(#|\*|```|=>)/', // escape gemini text - '/[\n\r]{3,}/', // remove extra breaks + '/^(^|\s+)(#|\*|```|=>)/', // escape gemini text + '/[\n\r]{3,}/', // remove extra breaks ], [ '$1 $2',