render

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ThemeAuto  = "auto"
	ThemeLight = "light"
	ThemeDark  = "dark"
)

Built-in theme names that map to embedded CSS files

Variables

This section is empty.

Functions

func ResolveTheme

func ResolveTheme(theme, themeLight, themeDark string) string

ResolveTheme resolves "auto" to the system theme, or returns the theme as-is. When theme is "auto", it detects the system's dark/light preference and uses themeLight or themeDark if they are set, otherwise falls back to "light" or "dark".

func ToANSI

func ToANSI(src []byte, theme, themeLight, themeDark string, wrap int) (string, error)

func ToHTML

func ToHTML(src []byte, theme, themeLight, themeDark, width, mdFilePath string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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