diff --git a/README.md b/README.md index 8ce910d..48d7298 100755 --- a/README.md +++ b/README.md @@ -1,15 +1,8 @@ # gemtext-php -Lightweight, object-oriented PHP 8 library for [Gemtext](https://geminiprotocol.net/docs/gemtext.gmi) markup +PHP 8 library for `text/gemini` -## See also - -* [gemini-php](https://github.com/YGGverse/gemini-php) - PHP 8 Client library for Gemini protocol connections - -## Integrations - -* [gemini-dl](https://github.com/YGGverse/gemini-dl) - CLI batch downloader for Gemini protocol -* [Yoda](https://github.com/YGGverse/Yoda) - PHP-GTK Browser for Gemini protocol +This library is lightweight, object-oriented [Gemtext](https://geminiprotocol.net/docs/gemtext.gmi) replacement to [gemini-php](https://github.com/YGGverse/gemini-php) ## Install diff --git a/src/Entity/Listing.php b/src/Entity/Listing.php index e77d169..d7b27b0 100755 --- a/src/Entity/Listing.php +++ b/src/Entity/Listing.php @@ -32,7 +32,7 @@ class Listing implements \Yggverse\Gemtext\Interface\Entity $this->_item = $item; } - public function getItem(): ?string + public function Item(): ?string { return $this->_item; } diff --git a/src/Parser/Code.php b/src/Parser/Code.php index abc83eb..bd93101 100755 --- a/src/Parser/Code.php +++ b/src/Parser/Code.php @@ -26,7 +26,7 @@ class Code implements \Yggverse\Gemtext\Interface\Parser // Multiline with optional alt support case preg_match( - '/^(?[`]{3})(?[^`]*)$/m', + '/^(?[`]{3})(?[^`]+)$/m', $line, $matches ):