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

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

18 lines
442 B
Go

package main
import (
"bytes"
"context"
)
// CorporateModernistTextBlock renders the built-in `text` block with
// Inter at 17/28, tabular figures, and hanging punctuation.
func CorporateModernistTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = textOverrideComponent(text, class).Render(ctx, &buf)
return buf.String()
}