mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Use Remarkup document link
This commit is contained in:
parent
3fcb94a45c
commit
523cba5da4
2 changed files with 3 additions and 1 deletions
|
@ -383,6 +383,8 @@ final class PhabricatorMarkupEngine {
|
|||
}
|
||||
}
|
||||
|
||||
$rules[] = new PhutilRemarkupRuleDocumentLink();
|
||||
|
||||
if ($options['fileproxy']) {
|
||||
$rules[] = new PhabricatorRemarkupRuleProxyImage();
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ final class PhabricatorRemarkupRuleProxyImage
|
|||
|
||||
public function apply($text) {
|
||||
|
||||
$filetypes = '(?:\.jpe?g|.png|.gif)';
|
||||
$filetypes = '\.(?:jpe?g|png|gif)';
|
||||
|
||||
$text = preg_replace_callback(
|
||||
'@[<](\w{3,}://.+?'.$filetypes.')[>]@',
|
||||
|
|
Loading…
Reference in a new issue