Skip to content

Commit

Permalink
fix: Vite assets on production
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Frey <[email protected]>
  • Loading branch information
lukas-frey committed May 28, 2024
1 parent 860399c commit 7a369a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Markdown/Renderers/ImageRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function render(Node $node, ChildNodeRendererInterface $childRenderer): \
} else {
$attrs['src'] = Str::startsWith($url = $node->getUrl(), ['http://', 'https://'])
? $url
: Vite::asset($url);
: Vite::asset(str($url)->ltrim('/')->toString());
}

$attrs['alt'] = $this->getAltText($node);
Expand Down

0 comments on commit 7a369a7

Please sign in to comment.