We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e9031 commit 78f635dCopy full SHA for 78f635d
app/Support/Markdown.php
@@ -114,9 +114,9 @@ protected function convertSpecialBlockquotes(): static
114
public function absoluteImageUrls(string $baseUrl): static
115
{
116
$this->content = preg_replace(
117
- '/\b(src|srcset)\s*=\s*(["\'])(?!https?:\/\/|data:|\/\/)([^"\']+)\2/i',
118
- '$1=$2' . $baseUrl . '$3$2',
119
- $this->content
+ pattern: '/\b(src|srcset)\s*=\s*(["\'])(?!https?:\/\/|data:|\/\/)([^"\']+)\2/i',
+ replacement: '$1=$2' . $baseUrl . '$3$2',
+ subject: $this->content
120
);
121
122
return $this;
0 commit comments