render

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderText

func RenderText(scanner document.ContentNodeScanner, w io.Writer) error

RenderText renders a ContentNodeScanner to plain text with ASCII tables.

Types

type Cell

type Cell struct {
	Row     int
	Col     int
	Text    string
	RowSpan int
	ColSpan int
}

type Layout

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

Layout represents the computed layout of the table. Separates layout computation from rendering to manage complexity.

type Table

type Table struct {
	Rows  int
	Cols  int
	Cells []*Cell
}

func (*Table) Render

func (t *Table) Render() string

Render renders the table to ASCII string

Jump to

Keyboard shortcuts

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