|
|
@ -236,7 +236,8 @@ class Gemtext extends Markup |
|
|
|
protected function _onActivateLink( |
|
|
|
protected function _onActivateLink( |
|
|
|
\GtkLabel $label, |
|
|
|
\GtkLabel $label, |
|
|
|
string $href |
|
|
|
string $href |
|
|
|
) { |
|
|
|
): bool |
|
|
|
|
|
|
|
{ |
|
|
|
// Format URL |
|
|
|
// Format URL |
|
|
|
$url = $this->_url( |
|
|
|
$url = $this->_url( |
|
|
|
$href |
|
|
|
$href |
|
|
@ -253,7 +254,7 @@ class Gemtext extends Markup |
|
|
|
$this->content->page->update(); |
|
|
|
$this->content->page->update(); |
|
|
|
|
|
|
|
|
|
|
|
// Prevent propagation for supported protocols |
|
|
|
// Prevent propagation for supported protocols |
|
|
|
if (in_array( |
|
|
|
return in_array( |
|
|
|
parse_url( |
|
|
|
parse_url( |
|
|
|
$url, |
|
|
|
$url, |
|
|
|
PHP_URL_SCHEME |
|
|
|
PHP_URL_SCHEME |
|
|
@ -262,8 +263,8 @@ class Gemtext extends Markup |
|
|
|
'nex', |
|
|
|
'nex', |
|
|
|
'gemini', |
|
|
|
'gemini', |
|
|
|
'file' |
|
|
|
'file' |
|
|
|
]) |
|
|
|
] |
|
|
|
) return true; |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private function _wrap( |
|
|
|
private function _wrap( |
|
|
|