D.A.B.Tv0.0.33 Tutorial API DABT Tools ↗ GitHub ↗

tui.show

tui.md.show PANE TEXT [FILE]

Renders TEXT as Markdown into the scrolling pane PANE (scroll="v").

Parameters

  • PANE: the ID of a pane with scroll="v".
  • TEXT: the Markdown source.
  • FILE: where TEXT came from. Relative links (other.md, ../x.md#anchor) resolve against its folder and tui.md.back can return to it.

Notes

  • The text is remembered, and the pane is rendered again when its width changes (resize, first layout, page switch).
  • <markdown pane="ID" src="FILE"/> in markup does the same with the contents of a file.

Example

tui.md.show help_pane "$(<README.md)"

See also: tui.md.show_file, tui.md.render