markdown

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package markdown provides markdown rendering for terminal output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCode

func RenderCode(language, code string, width int, showBorder bool) string

RenderCode renders a code block with syntax highlighting.

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

Renderer renders markdown content for terminal display.

func NewRenderer

func NewRenderer(width int) *Renderer

NewRenderer creates a new markdown renderer.

func (*Renderer) Render

func (r *Renderer) Render(content string) string

Render renders markdown content to styled terminal output.

Jump to

Keyboard shortcuts

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