mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +00:00
Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
472e588bf3 | ||
|
|
58f33defaa | ||
|
|
fec140c2e3 | ||
|
|
bf52a58fbd | ||
|
|
e0b496a7ae | ||
|
|
ca0ca7dfb7 |
3 changed files with 11 additions and 4 deletions
11
README.md
11
README.md
|
|
@ -1,8 +1,15 @@
|
||||||
# gemtext-php
|
# 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
|
## Install
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class Listing implements \Yggverse\Gemtext\Interface\Entity
|
||||||
$this->_item = $item;
|
$this->_item = $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Item(): ?string
|
public function getItem(): ?string
|
||||||
{
|
{
|
||||||
return $this->_item;
|
return $this->_item;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
):
|
):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue