mirror of
https://github.com/YGGverse/gemini-php.git
synced 2026-03-31 17:05:29 +00:00
implement getLinks method
This commit is contained in:
parent
35893d2db2
commit
590096afef
2 changed files with 45 additions and 4 deletions
20
README.md
20
README.md
|
|
@ -75,15 +75,33 @@ echo $reader->toGemini(
|
|||
Get document title
|
||||
|
||||
```
|
||||
echo $reader->getH1(
|
||||
$gemini = $reader->toGemini(
|
||||
file_get_contents(
|
||||
'/host/data/pages/index.txt'
|
||||
)
|
||||
);
|
||||
|
||||
echo $reader->getH1(
|
||||
$gemini
|
||||
);
|
||||
```
|
||||
|
||||
#### Reader::getLinks
|
||||
|
||||
Get document links
|
||||
|
||||
```
|
||||
$gemini = $reader->toGemini(
|
||||
file_get_contents(
|
||||
'/host/data/pages/index.txt'
|
||||
)
|
||||
);
|
||||
|
||||
echo $reader->getLinks(
|
||||
$gemini
|
||||
);
|
||||
```
|
||||
|
||||
### Filesystem
|
||||
|
||||
Provides methods for simple and secure interaction with DokuWiki file storage
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue