markdown

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package markdown provides Glamour-based markdown rendering for TUI preview panes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderStatic

func RenderStatic(source string, width int) []string

RenderStatic renders markdown content using Glamour and returns the result as a slice of lines. Falls back to plain text if rendering fails. Safe for concurrent use in tea.Cmd goroutines.

func Style

func Style() gansi.StyleConfig

Style returns a customised Glamour style config based on the dark theme with heading prefixes removed for cleaner TUI rendering.

Types

This section is empty.

Jump to

Keyboard shortcuts

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