themes-magazine-bold/text_override.go
Alex Dunmow fe754f634b initial: theme plugin magazine-bold
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/magazine-bold.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:38 +08:00

20 lines
461 B
Go

package main
import (
"bytes"
"context"
)
// TextOverrideBlock renders body text with the Magazine Bold Inter cadence
// and a margin folio.
//
// Built-in text content shape: {"text": "...", "class": "..."}
func TextOverrideBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = mbTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}