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

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

18 lines
420 B
Go

package main
import (
"bytes"
"context"
)
// CoffeeTextBlock renders rich text with Coffee body styling and the optional
// drop-cap utility on the first paragraph.
func CoffeeTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = coffeeTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}