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

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

18 lines
431 B
Go

package main
import (
"bytes"
"context"
)
// Y2KTextBlock applies the holographic link underline to the built-in text
// block when the y2k theme is active.
// Content: {text, class}
func Y2KTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = y2kTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}