Compare commits

...

6 commits
1.0.0 ... main

Author SHA1 Message Date
yggverse
472e588bf3 update readme 2024-07-08 05:54:43 +03:00
yggverse
58f33defaa update readme 2024-07-08 05:53:15 +03:00
yggverse
fec140c2e3 update readme 2024-07-08 05:52:05 +03:00
yggverse
bf52a58fbd update readme 2024-07-08 05:50:45 +03:00
yggverse
e0b496a7ae fix multiline code expression 2024-07-07 02:56:24 +03:00
yggverse
ca0ca7dfb7 fix item getter name 2024-07-01 14:11:53 +03:00
3 changed files with 11 additions and 4 deletions

View file

@ -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

View file

@ -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;
}

View file

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