package main import ( "bytes" "context" "git.dev.alexdunmow.com/block/core/blocks" ) // ImageOverrideBlock renders the built-in image block with the Magazine Bold // treatment: optional full-bleed mode + a mono caption folio. // // Built-in image content shape: {"src": "...", "alt": "...", "caption": "...", "fullBleed": true/false} func ImageOverrideBlock(ctx context.Context, content map[string]any) string { src := blocks.ResolveMediaPath(getString(content, "src")) alt := getString(content, "alt") caption := getString(content, "caption") fullBleed := getBool(content, "fullBleed", false) var buf bytes.Buffer _ = mbImageComponent(src, alt, caption, fullBleed).Render(ctx, &buf) return buf.String() }