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>
20 lines
461 B
Go
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()
|
|
}
|