diff --git a/README.md b/README.md index 48d7298..8ce910d 100755 --- a/README.md +++ b/README.md @@ -1,8 +1,15 @@ # gemtext-php -PHP 8 library for `text/gemini` +Lightweight, object-oriented PHP 8 library for [Gemtext](https://geminiprotocol.net/docs/gemtext.gmi) markup -This library is lightweight, object-oriented [Gemtext](https://geminiprotocol.net/docs/gemtext.gmi) replacement to [gemini-php](https://github.com/YGGverse/gemini-php) +## 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 ## Install diff --git a/src/Entity/Listing.php b/src/Entity/Listing.php index d7b27b0..e77d169 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 Item(): ?string + public function getItem(): ?string { return $this->_item; } diff --git a/src/Parser/Code.php b/src/Parser/Code.php index bd93101..abc83eb 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 ):