mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +00:00
Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
472e588bf3 | ||
|
|
58f33defaa | ||
|
|
fec140c2e3 | ||
|
|
bf52a58fbd | ||
|
|
e0b496a7ae |
2 changed files with 10 additions and 3 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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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