Compare commits

..

No commits in common. "main" and "1.0.0" have entirely different histories.
main ... 1.0.0

3 changed files with 4 additions and 11 deletions

View file

@ -1,15 +1,8 @@
# gemtext-php # 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 This library is lightweight, object-oriented [Gemtext](https://geminiprotocol.net/docs/gemtext.gmi) replacement to [gemini-php](https://github.com/YGGverse/gemini-php)
* [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 ## Install

View file

@ -32,7 +32,7 @@ class Listing implements \Yggverse\Gemtext\Interface\Entity
$this->_item = $item; $this->_item = $item;
} }
public function getItem(): ?string public function Item(): ?string
{ {
return $this->_item; return $this->_item;
} }

View file

@ -26,7 +26,7 @@ class Code implements \Yggverse\Gemtext\Interface\Parser
// Multiline with optional alt support // Multiline with optional alt support
case preg_match( case preg_match(
'/^(?<tag>[`]{3})(?<alt>[^`]*)$/m', '/^(?<tag>[`]{3})(?<alt>[^`]+)$/m',
$line, $line,
$matches $matches
): ):