render_markdown: Render a terminal frame as a Markdown code block

View source: R/export.R

render_markdownR Documentation

Render a terminal frame as a Markdown code block

Description

Render a terminal frame as a Markdown code block

Usage

render_markdown(x, width = 80, height = 24, trim = TRUE)

Arguments

x

A widget, Screen, App, or ScreenBuffer.

width, height

Frame size in cells.

trim

Remove trailing spaces from each line?

Value

A fenced Markdown text block.

Examples

cat(render_markdown(label("Hello"), width = 20, height = 2))

termr documentation built on Oct. 21, 2026, 5:13 p.m.