render

package
v0.36.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 1 Imported by: 0

README

render

import "github.com/lucasassuncao/yedit/internal/render"

Package render holds rendering helpers shared by the editor and viewer TUIs.

Index

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.

Generated by gomarkdoc

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL