Skip to content

fix: render external images and SVGs correctly#196

Open
Borber wants to merge 1 commit intotomfran:mainfrom
Borber:main
Open

fix: render external images and SVGs correctly#196
Borber wants to merge 1 commit intotomfran:mainfrom
Borber:main

Conversation

@Borber
Copy link
Contributor

@Borber Borber commented Feb 9, 2026

The issue is in themes/typo/layouts/_default/_markup/render-image.html. The original code only renders the tag if a local resource ($imgResource) is found. External images (which don't have a matching local resource) cause $imgResource to be nil, resulting in the image tag being skipped entirely, even though the

and caption are rendered.

I have modified the template to add a fallback that renders the tag using the original URL when no local resource is found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant