Skip to content

Conversation

@saade
Copy link
Member

@saade saade commented Aug 26, 2025

This PR fixes the absoluteImageUrls method to properly convert relative src and srcset attributes into absolute URLs.

• Updated regex to handle both src and srcset
• Preserves original quotes
• Ignores already absolute URLs (http(s), //, data:)

@saade saade requested a review from danharrin August 26, 2025 17:23
@saade saade added the bug Something isn't working label Aug 26, 2025
@saade saade changed the title fix(markdown): correctly rewrite relative src and srcset URLs to abso… fix(markdown): correctly rewrite relative src and srcset URLs to absolute Aug 26, 2025
@saade saade added the bug Something isn't working label Aug 26, 2025
@danharrin danharrin merged commit 5368488 into main Aug 26, 2025
1 check passed
@danharrin danharrin deleted the fix/rewrite-relative-urls branch August 26, 2025 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants