mirror of
https://github.com/YGGverse/gemtext-php.git
synced 2026-03-31 17:55:38 +00:00
update readme
This commit is contained in:
parent
a14eb206a8
commit
566fbd2f4b
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ This library is lightweight, object-oriented [Gemtext](https://geminiprotocol.ne
|
||||||
composer require yggverse/gemtext:dev-main
|
composer require yggverse/gemtext:dev-main
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Example
|
||||||
|
|
||||||
### Parse existing document
|
### Parse existing document
|
||||||
|
|
||||||
|
|
@ -56,12 +56,12 @@ $link->setDate(
|
||||||
date('Y-m-d')
|
date('Y-m-d')
|
||||||
);
|
);
|
||||||
|
|
||||||
// Append link to document
|
// Append link
|
||||||
$document->append(
|
$document->append(
|
||||||
$link
|
$link
|
||||||
);
|
);
|
||||||
|
|
||||||
// Get gemtext result
|
// Get gemtext
|
||||||
print(
|
print(
|
||||||
$document->toString()
|
$document->toString()
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue