package main import ( "bytes" "context" ) // ArtDecoTextBlock overrides the built-in "text" block when the Art Deco theme is active. // Renders prose in Cormorant body with a classical italic drop-cap on the first paragraph. // Content: {"text": "", "class": "optional-extra-class"} func ArtDecoTextBlock(ctx context.Context, content map[string]any) string { data := TextOverrideData{ Text: getString(content, "text"), Class: getString(content, "class"), } var buf bytes.Buffer _ = artDecoTextComponent(data).Render(ctx, &buf) return buf.String() } // TextOverrideData is the typed view for the text override component. type TextOverrideData struct { Text string Class string }