@ -128,6 +128,7 @@ $body = new \Yggverse\Gemini\Gemtext\Body(
#### Body::getH1
#### Body::getH2
#### Body::getH3
#### Body::getQuote
#### Body::getLinks
``` php
@ -94,6 +94,23 @@ class Body
return $matches;
}
public function getQuote(): array
{
$matches = [];
foreach ($this->_lines as $index => $line)
if (preg_match('/^>(.*)/', trim($line), $match))
$matches[$index] = trim(
$match[1]
);
public function findLinks(string $protocol = 'gemini'): array