Skip to content

feat: add rehype-raw and prose image styles#39

Merged
ajbozarth merged 1 commit intogenerative-computing:mainfrom
ajbozarth:feat/prose-images
May 6, 2026
Merged

feat: add rehype-raw and prose image styles#39
ajbozarth merged 1 commit intogenerative-computing:mainfrom
ajbozarth:feat/prose-images

Conversation

@ajbozarth
Copy link
Copy Markdown
Contributor

@ajbozarth ajbozarth commented May 5, 2026

Summary

  • Adds rehype-raw to the blog renderer, giving authors an HTML escape hatch for image-specific styling (e.g. <img style="background-color: white;" />) without touching globals.css
  • Adds general .prose img layout rules (display: block, max-width: 100%, height: auto, margin: 1.5rem auto) as the site-wide baseline for blog images

Context

Extracted from #36 to keep the blog PR diff focused on content. The filename-specific .prose img[src$="harnessed.png"] rule from that PR is replaced by inline styling on the image tag itself.

Test plan

  • Blog images render correctly at /blogs/*
  • Inline <img style="..."> in a blog post applies the style (verify with add small models rock blog #36 once merged)
  • No regressions on existing blog posts

Adds rehype-raw to the blog renderer so authors can use inline HTML
(e.g. <img style="...">) for image-specific styling without touching
globals.css. Adds general .prose img layout rules as the baseline.

Signed-off-by: Alex Bozarth <ajbozart@us.ibm.com>
@ajbozarth ajbozarth requested a review from a team as a code owner May 5, 2026 21:49
@ajbozarth ajbozarth self-assigned this May 5, 2026
@ajbozarth ajbozarth requested a review from psschwei May 5, 2026 21:50
Copy link
Copy Markdown
Collaborator

@planetf1 planetf1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

built/tested. layout looks good. approved

@ajbozarth ajbozarth added this pull request to the merge queue May 6, 2026
Merged via the queue into generative-computing:main with commit 3f6fb20 May 6, 2026
6 checks passed
@ajbozarth ajbozarth deleted the feat/prose-images branch May 6, 2026 14:06
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.

2 participants