Documentation
¶
Overview ¶
Package render holds rendering helpers shared by the editor and viewer TUIs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func YAMLFence ¶
func YAMLFence(yaml string, r *glamour.TermRenderer) string
YAMLFence wraps yaml in a ```yaml code fence and renders it through r for syntax-highlighted display. It returns yaml unchanged when r is nil, yaml is empty, or rendering fails. Callers apply their own surrounding trimming.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.